Define TIMER_BEGIN and TIMER_END even when timers are not enabled
authorSøren Sandmann Pedersen <ssp@redhat.com>
Tue, 31 Jul 2012 19:01:16 +0000 (15:01 -0400)
committerSøren Sandmann Pedersen <ssp@redhat.com>
Thu, 9 Aug 2012 15:23:45 +0000 (11:23 -0400)
This allows code that uses these macros to build when timers are
disabled.

pixman/pixman-private.h

index d5e6a72..dbfa829 100644 (file)
@@ -1082,6 +1082,11 @@ void pixman_timer_register (pixman_timer_t *timer);
     timer ## tname.total += OIL_STAMP () - begin ## tname;             \
     }
 
+#else
+
+#define TIMER_BEGIN(tname)
+#define TIMER_END(tname)
+
 #endif /* PIXMAN_TIMERS */
 
 /* sRGB<->linear conversion tables. Linear color space is the same