From 332aa3cf215aa6b4c86565f589f01a4b4ac7e362 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Sat, 11 Jul 2015 23:58:12 +0100 Subject: [PATCH] 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 file changed, 3 insertions(+) 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