summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <ssp@redhat.com>2012-07-31 15:01:16 -0400
committerSøren Sandmann Pedersen <ssp@redhat.com>2012-08-09 11:23:45 -0400
commit8db9ec9814a3dcd8211ec60cd4fd3c9ae9d77924 (patch)
tree028441b36d1d4d07b51d78c64d4ce1d996c23977
parentda5268cc19e03b24737dec3e2c51296156b869a8 (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.h5
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