diff options
author | Francois Gouget <fgouget@codeweavers.com> | 2016-11-21 19:34:01 +0100 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2016-11-23 08:51:09 +0100 |
commit | b1cdb2756f350ade8d5b425dec85f8207ed39a0d (patch) | |
tree | 72ae9eb1d292d94b1de53ef2905c8b06e6779bd6 /spice/macros.h | |
parent | 0d7aa7579e54e2dd92cd047df418034f2f246bf3 (diff) |
macros: Add MSVC support to SPICE_GNUC_DEPRECATED
Based on the G_DEPRECATED GLib macro.
For projects that don't use GLib.
Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Diffstat (limited to 'spice/macros.h')
-rw-r--r-- | spice/macros.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spice/macros.h b/spice/macros.h index ae11b3c..1f8a5c8 100644 --- a/spice/macros.h +++ b/spice/macros.h @@ -82,6 +82,8 @@ #define SPICE_GNUC_DEPRECATED G_DEPRECATED #elif __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1) #define SPICE_GNUC_DEPRECATED __attribute__((__deprecated__)) +#elif defined(_MSC_VER) && (_MSC_VER >= 1300) +#define SPICE_GNUC_DEPRECATED __declspec(deprecated) #else #define SPICE_GNUC_DEPRECATED #endif |