From 8db9ec9814a3dcd8211ec60cd4fd3c9ae9d77924 Mon Sep 17 00:00:00 2001 From: Søren Sandmann Pedersen Date: Tue, 31 Jul 2012 15:01:16 -0400 Subject: Define TIMER_BEGIN and TIMER_END even when timers are not enabled This allows code that uses these macros to build when timers are disabled. --- pixman/pixman-private.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pixman/pixman-private.h b/pixman/pixman-private.h index d5e6a72e..dbfa8295 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) + #endif /* PIXMAN_TIMERS */ /* sRGB<->linear conversion tables. Linear color space is the same -- cgit v1.2.3