summaryrefslogtreecommitdiff
path: root/src/cairo-xlib.h
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2005-05-14 10:03:56 +0000
committerCarl Worth <cworth@cworth.org>2005-05-14 10:03:56 +0000
commit95859dc2c6975f072696374b90e1108626a99830 (patch)
tree3939a0c1659bcf093b43d072c73912c0ea6a8db2 /src/cairo-xlib.h
parentf797eaac1ce939a0a890ab2157f42d2ae3421dda (diff)
downloadcairo-95859dc2c6975f072696374b90e1108626a99830.tar.gz
Add an #error if cairo-foo.h is included when cairo was compiled without support for the foo backend.
Diffstat (limited to 'src/cairo-xlib.h')
-rw-r--r--src/cairo-xlib.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cairo-xlib.h b/src/cairo-xlib.h
index 3024a53bb..7c71c4e33 100644
--- a/src/cairo-xlib.h
+++ b/src/cairo-xlib.h
@@ -62,6 +62,9 @@ cairo_xlib_surface_set_size (cairo_surface_t *surface,
CAIRO_END_DECLS
+#else /* CAIRO_HAS_XLIB_SURFACE */
+# error Cairo was not compiled with support for the xlib backend
#endif /* CAIRO_HAS_XLIB_SURFACE */
+
#endif /* CAIRO_XLIB_H */