diff options
author | Søren Sandmann Pedersen <ssp@redhat.com> | 2012-07-31 15:01:16 -0400 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@redhat.com> | 2012-08-09 11:23:45 -0400 |
commit | 8db9ec9814a3dcd8211ec60cd4fd3c9ae9d77924 (patch) | |
tree | 028441b36d1d4d07b51d78c64d4ce1d996c23977 | |
parent | da5268cc19e03b24737dec3e2c51296156b869a8 (diff) |
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.
-rw-r--r-- | 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 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 |