[Pixman] [PATCH] Define TIMER_BEGIN and TIMER_END even when timers are not enabled

Søren Sandmann sandmann at cs.au.dk
Tue Jul 31 12:04:09 PDT 2012


From: Søren Sandmann Pedersen <ssp at redhat.com>

This allows code that uses these macros to build when timers are
disabled.
---
 pixman/pixman-private.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/pixman/pixman-private.h b/pixman/pixman-private.h
index d5e6a72..2da467c 100644
--- a/pixman/pixman-private.h
+++ b/pixman/pixman-private.h
@@ -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, b)
+
 #endif /* PIXMAN_TIMERS */
 
 /* sRGB<->linear conversion tables. Linear color space is the same
-- 
1.7.4



More information about the Pixman mailing list