mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-protocol
synced 2025-12-26 22:55:30 +00:00
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>
This commit is contained in:
parent
0d7aa7579e
commit
b1cdb2756f
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user