diff options
-rw-r--r-- | ChangeLog | 13 | ||||
-rw-r--r-- | src/cairo-atsui.h | 3 | ||||
-rw-r--r-- | src/cairo-ft.h | 3 | ||||
-rw-r--r-- | src/cairo-glitz.h | 3 | ||||
-rw-r--r-- | src/cairo-pdf.h | 3 | ||||
-rw-r--r-- | src/cairo-ps.h | 3 | ||||
-rw-r--r-- | src/cairo-quartz.h | 3 | ||||
-rw-r--r-- | src/cairo-win32.h | 6 | ||||
-rw-r--r-- | src/cairo-xcb.h | 3 | ||||
-rw-r--r-- | src/cairo-xlib.h | 3 |
10 files changed, 41 insertions, 2 deletions
@@ -1,5 +1,18 @@ 2005-05-14 Carl Worth <cworth@cworth.org> + * src/cairo-atsui.h: + * src/cairo-ft.h: + * src/cairo-glitz.h: + * src/cairo-pdf.h: + * src/cairo-ps.h: + * src/cairo-quartz.h: + * src/cairo-win32.h: + * src/cairo-xcb.h: + * src/cairo-xlib.h: Add an #error if cairo-foo.h is included when + cairo was compiled without support for the foo backend. + +2005-05-14 Carl Worth <cworth@cworth.org> + * test/pdf-surface.c (main): Update for change in cairo_pdf_surface_create which no longer accepts DPI values. diff --git a/src/cairo-atsui.h b/src/cairo-atsui.h index 715d6e9a..72e2d6d1 100644 --- a/src/cairo-atsui.h +++ b/src/cairo-atsui.h @@ -48,5 +48,8 @@ CAIRO_BEGIN_DECLS CAIRO_END_DECLS +#else /* CAIRO_HAS_ATSUI_FONT */ +# error Cairo was not compiled with support for the atsui font backend #endif /* CAIRO_HAS_ATSUI_FONT */ + #endif /* CAIRO_ATSUI_H */ diff --git a/src/cairo-ft.h b/src/cairo-ft.h index 506e61f4..4e8b8bcd 100644 --- a/src/cairo-ft.h +++ b/src/cairo-ft.h @@ -64,5 +64,8 @@ cairo_ft_scaled_font_unlock_face (cairo_scaled_font_t *scaled_font); CAIRO_END_DECLS +#else /* CAIRO_HAS_FT_FONT */ +# error Cairo was not compiled with support for the freetype font backend #endif /* CAIRO_HAS_FT_FONT */ + #endif /* CAIRO_FT_H */ diff --git a/src/cairo-glitz.h b/src/cairo-glitz.h index bf812487..f5b4f281 100644 --- a/src/cairo-glitz.h +++ b/src/cairo-glitz.h @@ -50,5 +50,8 @@ cairo_glitz_surface_create (glitz_surface_t *surface); CAIRO_END_DECLS +#else /* CAIRO_HAS_GLITZ_SURFACE */ +# error Cairo was not compiled with support for the glitz backend #endif /* CAIRO_HAS_GLITZ_SURFACE */ + #endif /* CAIRO_GLITZ_H */ diff --git a/src/cairo-pdf.h b/src/cairo-pdf.h index cb2aa6fe..3d622239 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 */ diff --git a/src/cairo-ps.h b/src/cairo-ps.h index a0a7cd56..eca59e59 100644 --- a/src/cairo-ps.h +++ b/src/cairo-ps.h @@ -56,5 +56,8 @@ cairo_ps_surface_create (FILE *file, CAIRO_END_DECLS +#else /* CAIRO_HAS_PS_SURFACE */ +# error Cairo was not compiled with support for the ps backend #endif /* CAIRO_HAS_PS_SURFACE */ + #endif /* CAIRO_PS_H */ diff --git a/src/cairo-quartz.h b/src/cairo-quartz.h index 7ba35eef..6f59f6a7 100644 --- a/src/cairo-quartz.h +++ b/src/cairo-quartz.h @@ -52,6 +52,9 @@ cairo_quartz_surface_create ( CGContextRef context, CAIRO_END_DECLS +#else /* CAIRO_HAS_QUARTZ_SURFACE */ +# error Cairo was not compiled with support for the quartz backend #endif /* CAIRO_HAS_QUARTZ_SURFACE */ + #endif /* CAIRO_QUARTZ_H */ diff --git a/src/cairo-win32.h b/src/cairo-win32.h index 29197b9e..93983456 100644 --- a/src/cairo-win32.h +++ b/src/cairo-win32.h @@ -60,8 +60,10 @@ cairo_win32_scaled_font_done_font (cairo_scaled_font_t *scaled_font); double cairo_win32_scaled_font_get_metrics_factor (cairo_scaled_font_t *scaled_font); -#endif /* CAIRO_HAS_WIN32_SURFACE */ - CAIRO_END_DECLS +#else /* CAIRO_HAS_WIN32_SURFACE */ +# error Cairo was not compiled with support for the win32 backend +#endif /* CAIRO_HAS_WIN32_SURFACE */ + #endif /* _CAIRO_WIN32_H_ */ diff --git a/src/cairo-xcb.h b/src/cairo-xcb.h index f0728ff5..2300a682 100644 --- a/src/cairo-xcb.h +++ b/src/cairo-xcb.h @@ -54,5 +54,8 @@ cairo_xcb_surface_create (XCBConnection *dpy, CAIRO_END_DECLS +#else /* CAIRO_HAS_XCB_SURFACE */ +# error Cairo was not compiled with support for the xcb backend #endif /* CAIRO_HAS_XCB_SURFACE */ + #endif /* CAIRO_XCB_H */ diff --git a/src/cairo-xlib.h b/src/cairo-xlib.h index 3024a53b..7c71c4e3 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 */ |