From e760d0927ee5b732392284fc19fda225f137f909 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Fri, 3 Nov 2006 14:58:30 -0800 Subject: [PATCH] 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 --- perf/cairo-perf.c | 2 ++ 1 file changed, 2 insertions(+) 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: