From: Søren Sandmann Pedersen Date: Tue, 31 Jul 2012 19:01:16 +0000 (-0400) Subject: Define TIMER_BEGIN and TIMER_END even when timers are not enabled X-Git-Tag: pixman-0.27.4~59 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8db9ec9814a3dcd8211ec60cd4fd3c9ae9d77924;p=platform%2Fupstream%2Fpixman.git 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. --- diff --git a/pixman/pixman-private.h b/pixman/pixman-private.h index d5e6a72..dbfa829 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