[clutter] macros: Add fallback defines for non-GCC compilers



commit 332aa3cf215aa6b4c86565f589f01a4b4ac7e362
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Sat Jul 11 23:58:12 2015 +0100

    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

 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 3492699..7a0d0b1 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]