mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-23 02:38:10 +02:00
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
This commit is contained in:
parent
4cd50965a1
commit
e760d0927e
1 changed files with 2 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue