diff options
author | Carl Worth <cworth@cworth.org> | 2006-11-03 14:58:30 -0800 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2006-11-06 09:39:02 -0800 |
commit | e760d0927ee5b732392284fc19fda225f137f909 (patch) | |
tree | 312227ed2cf5b1b573e202f99a73a915fc98c26d /perf/cairo-perf.c | |
parent | 4cd50965a1935bf934f39f9e35b7d1a055ae7e16 (diff) |
Don't rely on NQUARTZ or OS2 surface types unless they exist.
This allows the cairo-perf stuff to build on older checkouts,
(such as 1.2.4), so that we can usefully do things like:
cairo-perf-diff 1.2.4 HEAD
Diffstat (limited to 'perf/cairo-perf.c')
-rw-r--r-- | perf/cairo-perf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/perf/cairo-perf.c b/perf/cairo-perf.c index 91f8e688d..0bee719b1 100644 --- a/perf/cairo-perf.c +++ b/perf/cairo-perf.c @@ -68,8 +68,10 @@ target_is_measurable (cairo_boilerplate_target_t *target) case CAIRO_SURFACE_TYPE_WIN32: case CAIRO_SURFACE_TYPE_BEOS: case CAIRO_SURFACE_TYPE_DIRECTFB: +#if CAIRO_VERSION_MAJOR > 1 || (CAIRO_VERSION_MAJOR = 1 && CAIRO_VERSION_MINOR > 2) case CAIRO_SURFACE_TYPE_NQUARTZ: case CAIRO_SURFACE_TYPE_OS2: +#endif return TRUE; case CAIRO_SURFACE_TYPE_PDF: case CAIRO_SURFACE_TYPE_PS: |