macros: Clang 3.4 and later versions can use deprecation macros for GCC
https://bugzilla.gnome.org/show_bug.cgi?id=752272
This commit is contained in:
parent
4dfa4de5d0
commit
ad690c61b1
@ -96,7 +96,8 @@
|
||||
#define _CLUTTER_EXTERN extern
|
||||
#endif
|
||||
|
||||
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)
|
||||
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6) || \
|
||||
__clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 4)
|
||||
#define _CLUTTER_GNUC_DO_PRAGMA(x) _Pragma(G_STRINGIFY (x))
|
||||
#define _CLUTTER_DEPRECATED_MACRO _CLUTTER_GNUC_DO_PRAGMA(GCC warning "Deprecated macro")
|
||||
#define _CLUTTER_DEPRECATED_MACRO_FOR(f) _CLUTTER_GNUC_DO_PRAGMA(GCC warning #f)
|
||||
|
Loading…
Reference in New Issue
Block a user