macros: Add fallback defines for non-GCC compilers
I forgot to add the fallback definitions in case we're not using GCC; without them, anybody using non-GCC compilers will get a build error. https://bugzilla.gnome.org/show_bug.cgi?id=752272
This commit is contained in:
parent
7e0f588c91
commit
332aa3cf21
@ -100,6 +100,9 @@
|
|||||||
#define _CLUTTER_GNUC_DO_PRAGMA(x) _Pragma(G_STRINGIFY (x))
|
#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 _CLUTTER_GNUC_DO_PRAGMA(GCC warning "Deprecated macro")
|
||||||
#define _CLUTTER_DEPRECATED_MACRO_FOR(f) _CLUTTER_GNUC_DO_PRAGMA(GCC warning #f)
|
#define _CLUTTER_DEPRECATED_MACRO_FOR(f) _CLUTTER_GNUC_DO_PRAGMA(GCC warning #f)
|
||||||
|
#else
|
||||||
|
#define _CLUTTER_DEPRECATED_MACRO
|
||||||
|
#define _CLUTTER_DEPRECATED_MACRO_FOR(f)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* these macros are used to mark deprecated functions, and thus have to be
|
/* these macros are used to mark deprecated functions, and thus have to be
|
||||||
|
Loading…
Reference in New Issue
Block a user