summaryrefslogtreecommitdiff
path: root/boilerplate/cairo-boilerplate-test-surfaces.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-06-30 22:12:50 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2009-06-30 22:12:50 +0100
commite5b4f78bff20903fef5f55a0fcd026590ea444a4 (patch)
tree50ac9596b80073904c5093e4bd8c31904579f0a2 /boilerplate/cairo-boilerplate-test-surfaces.c
parente0bdbb437ee699d6f75df34494a6e290dc55aa39 (diff)
[boilerplate] Only include null-test-surface >= cairo-1.9.3
Diffstat (limited to 'boilerplate/cairo-boilerplate-test-surfaces.c')
-rw-r--r--boilerplate/cairo-boilerplate-test-surfaces.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/boilerplate/cairo-boilerplate-test-surfaces.c b/boilerplate/cairo-boilerplate-test-surfaces.c
index 0fec3933..255472c6 100644
--- a/boilerplate/cairo-boilerplate-test-surfaces.c
+++ b/boilerplate/cairo-boilerplate-test-surfaces.c
@@ -24,14 +24,18 @@
* Author: Carl D. Worth <cworth@cworth.org>
*/
+#include "../cairo-version.h"
+
#include "cairo-boilerplate.h"
#include "cairo-boilerplate-test-surfaces-private.h"
#include <test-fallback-surface.h>
#include <test-fallback16-surface.h>
#include <test-meta-surface.h>
-#include <test-null-surface.h>
#include <test-paginated-surface.h>
+#if CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1,9,3)
+#include <test-null-surface.h>
+#endif
#include <assert.h>
@@ -92,7 +96,11 @@ _cairo_boilerplate_test_null_create_surface (const char *name,
void **closure)
{
*closure = NULL;
+#if CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1,9,3)
return _cairo_test_null_surface_create (content);
+#else
+ return NULL;
+#endif
}
static const cairo_user_data_key_t test_paginated_closure_key;