[cairo-commit] rcairo/src rb_cairo_constants.c,1.6,1.7
Kouhei Sutou
commit at pdx.freedesktop.org
Thu Apr 3 21:21:10 PDT 2008
Committed by: kou
Update of /cvs/cairo/rcairo/src
In directory kemper:/tmp/cvs-serv22880/src
Modified Files:
rb_cairo_constants.c
Log Message:
* src/rb_cairo_constants.c: define dummy
rb_cairo_ps_level_from_ruby_object() just for creating cairo.lib.
Index: rb_cairo_constants.c
===================================================================
RCS file: /cvs/cairo/rcairo/src/rb_cairo_constants.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- rb_cairo_constants.c 21 Feb 2008 13:18:10 -0000 1.6
+++ rb_cairo_constants.c 4 Apr 2008 04:25:16 -0000 1.7
@@ -127,9 +127,15 @@
#if CAIRO_HAS_SVG_SURFACE
DEFINE_RVAL2ENUM(svg_version, SVG_VERSION)
#endif
-#if CAIRO_HAS_PS_SURFACE
-# if CAIRO_CHECK_VERSION(1, 5, 2)
+#if CAIRO_HAS_PS_SURFACE && CAIRO_CHECK_VERSION(1, 5, 2)
DEFINE_RVAL2ENUM(ps_level, PS_LEVEL)
+#else
+# ifdef RB_CAIRO_PLATFORM_WIN32
+void
+rb_cairo_ps_level_from_ruby_object (VALUE rb_ps_level)
+{
+ /* dummy */
+}
# endif
#endif
@@ -436,8 +442,7 @@
cr_svg_version_to_string, -1);
#endif
-#if CAIRO_HAS_PS_SURFACE
-# if CAIRO_CHECK_VERSION(1, 5, 2)
+#if CAIRO_HAS_PS_SURFACE && CAIRO_CHECK_VERSION(1, 5, 2)
/* cairo_ps_level_t */
rb_mCairo_PSLevel = rb_define_module_under (rb_mCairo, "PSLevel");
rb_define_const (rb_mCairo_PSLevel, "LEVEL_2", INT2FIX (CAIRO_PS_LEVEL_2));
@@ -447,6 +452,5 @@
cr_ps_get_levels, 0);
rb_define_singleton_method (rb_mCairo_PSLevel, "name",
cr_ps_level_to_string, -1);
-# endif
#endif
}
More information about the cairo-commit
mailing list