diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2015-07-11 23:58:12 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2015-07-11 23:58:12 +0100 |
commit | 332aa3cf215aa6b4c86565f589f01a4b4ac7e362 (patch) | |
tree | 83f6d6e9864c45bc3cd0087c28023a0a9a6e78f8 /clutter/clutter-macros.h | |
parent | 7e0f588c91923d0983e6ecaa904b559890c265c3 (diff) | |
download | clutter-332aa3cf215aa6b4c86565f589f01a4b4ac7e362.tar.gz |
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
Diffstat (limited to 'clutter/clutter-macros.h')
-rw-r--r-- | clutter/clutter-macros.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clutter/clutter-macros.h b/clutter/clutter-macros.h index 349269936..7a0d0b1ae 100644 --- a/clutter/clutter-macros.h +++ b/clutter/clutter-macros.h @@ -100,6 +100,9 @@ #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) +#else +#define _CLUTTER_DEPRECATED_MACRO +#define _CLUTTER_DEPRECATED_MACRO_FOR(f) #endif /* these macros are used to mark deprecated functions, and thus have to be |