From fb93e1faa875d6b1ca48b0e792a9b79aa7cbc517 Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Sun, 17 Jun 2007 16:43:39 +0000 Subject: * dbus/dbus-macros.h, dbus/dbus-message.c, dbus/dbus-message.h: renamed DBUS_GNUC_DEPRECATED to DBUS_DEPRECATED and extended to msvc compiler --- dbus/dbus-macros.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'dbus/dbus-macros.h') diff --git a/dbus/dbus-macros.h b/dbus/dbus-macros.h index 5d9524e1..724cc18c 100644 --- a/dbus/dbus-macros.h +++ b/dbus/dbus-macros.h @@ -51,9 +51,11 @@ #endif #if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1) -#define DBUS_GNUC_DEPRECATED __attribute__((__deprecated__)) +# define DBUS_DEPRECATED __attribute__ ((__deprecated__)) +#elif defined(_MSC_VER) && (_MSC_VER >= 1300) +# define DBUS_DEPRECATED __declspec(deprecated) #else -#define DBUS_GNUC_DEPRECATED +# define DBUS_DEPRECATED #endif /* Normally docs are in .c files, but there isn't a .c file for this. */ @@ -103,9 +105,9 @@ * A null pointer, defined appropriately for C or C++. */ /** - * @def DBUS_GNUC_DEPRECATED + * @def DBUS_DEPRECATED * - * Tells gcc to warn about a function or type if it's used. + * Tells the compiler to warn about a function or type if it's used. * Code marked in this way should also be enclosed in * @code * #ifndef DBUS_DISABLE_DEPRECATED -- cgit