[cairo-commit] rcairo/src rb_cairo_surface.c,1.41,1.42

Kouhei Sutou commit at pdx.freedesktop.org
Sat Nov 1 07:23:16 PDT 2008


Committed by: kou

Update of /cvs/cairo/rcairo/src
In directory kemper:/tmp/cvs-serv21204/src

Modified Files:
	rb_cairo_surface.c 
Log Message:
* extconf.rb, src/rb_cairo_surface.c: check ruby/io.h availability.


Index: rb_cairo_surface.c
===================================================================
RCS file: /cvs/cairo/rcairo/src/rb_cairo_surface.c,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -d -r1.41 -r1.42
--- rb_cairo_surface.c	16 Aug 2008 12:52:17 -0000	1.41
+++ rb_cairo_surface.c	1 Nov 2008 14:23:14 -0000	1.42
@@ -27,7 +27,11 @@
 #  undef OpenFile
 #endif
 
-#include <rubyio.h>
+#ifdef HAVE_RUBY_IO_H
+#  include <ruby/io.h>
+#else
+#  include <rubyio.h>
+#endif
 
 #ifdef CAIRO_HAS_QUARTZ_SURFACE
 #  ifndef HAVE_TYPE_ENUM_RUBY_VALUE_TYPE



More information about the cairo-commit mailing list