summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2015-07-11 23:58:12 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2015-07-11 23:58:12 +0100
commit332aa3cf215aa6b4c86565f589f01a4b4ac7e362 (patch)
tree83f6d6e9864c45bc3cd0087c28023a0a9a6e78f8
parent7e0f588c91923d0983e6ecaa904b559890c265c3 (diff)
downloadclutter-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
-rw-r--r--clutter/clutter-macros.h3
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