summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/macros.h
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2015-11-27 15:40:47 +0100
committerDavid Kalnischkies <david@kalnischkies.de>2015-11-27 15:40:47 +0100
commit5dd00edbcf702cac1ea22392796c65881a8ef6f9 (patch)
treedc6889cd336109df822a3b7c9f72881a6824157e /apt-pkg/contrib/macros.h
parent28f24d3dad1844af316337d565ba2ebc11c8ce97 (diff)
add messages to our deprecation warnings in libapt
Git-Dch: Ignore
Diffstat (limited to 'apt-pkg/contrib/macros.h')
-rw-r--r--apt-pkg/contrib/macros.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/apt-pkg/contrib/macros.h b/apt-pkg/contrib/macros.h
index c361bded1..2727fd81f 100644
--- a/apt-pkg/contrib/macros.h
+++ b/apt-pkg/contrib/macros.h
@@ -72,6 +72,7 @@
#if APT_GCC_VERSION >= 0x0300
#define APT_DEPRECATED __attribute__ ((deprecated))
+ #define APT_DEPRECATED_MSG(X) __attribute__ ((deprecated(X)))
#define APT_CONST __attribute__((const))
#define APT_PURE __attribute__((pure))
#define APT_NORETURN __attribute__((noreturn))
@@ -79,6 +80,7 @@
#define APT_WEAK __attribute__((weak));
#else
#define APT_DEPRECATED
+ #define APT_DEPRECATED_MSG
#define APT_CONST
#define APT_PURE
#define APT_NORETURN