[cairo-commit] rcairo/packages/cairo/ext rb_cairo_surface.c, 1.20,
1.21
Kouhei Sutou
commit at pdx.freedesktop.org
Tue Oct 18 05:16:10 PDT 2005
Committed by: kou
Update of /cvs/cairo/rcairo/packages/cairo/ext
In directory gabe:/tmp/cvs-serv13295/packages/cairo/ext
Modified Files:
rb_cairo_surface.c
Log Message:
* packages/cairo/ext/rb_cairo_surface.c: Not compile cr_closure
functions if PS/PDF surface isn't supported.
Index: rb_cairo_surface.c
===================================================================
RCS file: /cvs/cairo/rcairo/packages/cairo/ext/rb_cairo_surface.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- rb_cairo_surface.c 16 Oct 2005 03:57:01 -0000 1.20
+++ rb_cairo_surface.c 18 Oct 2005 12:16:07 -0000 1.21
@@ -23,6 +23,12 @@
#include <cairo-pdf.h>
#endif
+#if CAIRO_HAS_PS_SURFACE || CAIRO_HAS_PDF_SURFACE
+# define HAS_CREATE_CR_CLOSURE_SURFACE 1
+#else
+# define HAS_CREATE_CR_CLOSURE_SURFACE 0
+#endif
+
VALUE rb_cCairo_Surface;
VALUE rb_cCairo_ImageSurface;
@@ -78,6 +84,7 @@
cairo_bool_t is_file;
} cr_io_callback_closure_t;
+#if HAS_CREATE_CR_CLOSURE_SURFACE
static VALUE
cr_closure_target_push (VALUE klass, VALUE obj)
{
@@ -147,6 +154,7 @@
{
cr_closure_destroy ((cr_io_callback_closure_t *) closure);
}
+#endif
static VALUE
cr_surface_io_func_rescue (VALUE io_closure)
More information about the cairo-commit
mailing list