[debug] Fix __GNUC__ typo
authorDamien Lespiau <damien.lespiau@intel.com>
Mon, 3 Aug 2009 12:58:52 +0000 (13:58 +0100)
committerDamien Lespiau <damien.lespiau@intel.com>
Mon, 3 Aug 2009 13:25:09 +0000 (14:25 +0100)
The right gcc define is __GNUC__ not __GNUC_. This typo had the side
effect that we were using the non gcc specific debug macros leading to
a less optmised CLUTTER_NOTE () than one could have dreamed of.

clutter/clutter-debug.h

index 42fe7a8..77ee967 100644 (file)
@@ -28,7 +28,7 @@ typedef enum {
 
 #ifdef CLUTTER_ENABLE_DEBUG
 
-#ifdef __GNUC_
+#ifdef __GNUC__
 #define CLUTTER_NOTE(type,x,a...)               G_STMT_START {  \
         if (clutter_debug_flags & CLUTTER_DEBUG_##type)         \
           { g_message ("[" #type "] " G_STRLOC ": " x, ##a); }  \