mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-protocol
synced 2025-12-26 22:55:30 +00:00
macros: Use GLib's G_DEPRECATED macro if available
This gains us automatic support for whichever compilers GLib supports in this macro when used in projects that use GLib. Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
This commit is contained in:
parent
97ae0b1bb4
commit
0d7aa7579e
@ -78,11 +78,13 @@
|
||||
#define SPICE_GNUC_NO_INSTRUMENT
|
||||
#endif /* !__GNUC__ */
|
||||
|
||||
#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
|
||||
#ifdef G_DEPRECATED
|
||||
#define SPICE_GNUC_DEPRECATED G_DEPRECATED
|
||||
#elif __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
|
||||
#define SPICE_GNUC_DEPRECATED __attribute__((__deprecated__))
|
||||
#else
|
||||
#define SPICE_GNUC_DEPRECATED
|
||||
#endif /* __GNUC__ */
|
||||
#endif
|
||||
|
||||
#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)
|
||||
# define SPICE_GNUC_MAY_ALIAS __attribute__((may_alias))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user