summaryrefslogtreecommitdiff
path: root/src/cairo-pdf.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-pdf.h
parentf797eaac1ce939a0a890ab2157f42d2ae3421dda (diff)
Add an #error if cairo-foo.h is included when cairo was compiled without support for the foo backend.
Diffstat (limited to 'src/cairo-pdf.h')
-rw-r--r--src/cairo-pdf.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cairo-pdf.h b/src/cairo-pdf.h
index cb2aa6fe1..3d6222397 100644
--- a/src/cairo-pdf.h
+++ b/src/cairo-pdf.h
@@ -64,5 +64,8 @@ cairo_pdf_surface_set_ppi (cairo_surface_t *surface,
CAIRO_END_DECLS
+#else /* CAIRO_HAS_PDF_SURFACE */
+# error Cairo was not compiled with support for the pdf backend
#endif /* CAIRO_HAS_PDF_SURFACE */
+
#endif /* CAIRO_PDF_H */