[cairo-commit] rcairo/packages/cairo/ext rb_cairo.h,1.16,1.17

Kouhei Sutou commit at pdx.freedesktop.org
Mon Nov 27 06:35:56 PST 2006


Committed by: kou

Update of /cvs/cairo/rcairo/packages/cairo/ext
In directory kemper:/tmp/cvs-serv23834/packages/cairo/ext

Modified Files:
	rb_cairo.h 
Log Message:
* packages/cairo/ext/rb_cairo.h (CAIRO_CHECK_VERSION): added.


Index: rb_cairo.h
===================================================================
RCS file: /cvs/cairo/rcairo/packages/cairo/ext/rb_cairo.h,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- rb_cairo.h	15 Oct 2006 07:12:33 -0000	1.16
+++ rb_cairo.h	27 Nov 2006 14:35:52 -0000	1.17
@@ -30,6 +30,12 @@
 #  include <cairo-svg.h>
 #endif
 
+#define CAIRO_CHECK_VERSION(major, minor, micro)    \
+    (CAIRO_VERSION_MAJOR > (major) || \
+     (CAIRO_VERSION_MAJOR == (major) && CAIRO_VERSION_MINOR > (minor)) || \
+     (CAIRO_VERSION_MAJOR == (major) && CAIRO_VERSION_MINOR == (minor) && \
+      CAIRO_VERSION_MICRO >= (micro)))
+
 #include "ruby.h"
 
 #if defined(RUBY_CAIRO_PLATFORM_WIN32) && !defined(RUBY_CAIRO_STATIC_COMPILATION)



More information about the cairo-commit mailing list