[cairo-commit] cairo-perl CairoSurface.xs, 1.14, 1.15 ChangeLog, 1.30, 1.31

Torsten Schoenfeld commit at pdx.freedesktop.org
Thu Aug 10 16:13:59 PDT 2006


Committed by: tsch

Update of /cvs/cairo/cairo-perl
In directory kemper:/tmp/cvs-serv5969

Modified Files:
	CairoSurface.xs ChangeLog 
Log Message:
	* CairoSurface.xs: Patch from Yaakov S puts version guards around
	a few PDF and PS functions that appeared in 1.2.0.

	* t/CairoSurface.t: Do the same for the corresponding tests.


Index: CairoSurface.xs
===================================================================
RCS file: /cvs/cairo/cairo-perl/CairoSurface.xs,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- CairoSurface.xs	10 Aug 2006 17:34:40 -0000	1.14
+++ CairoSurface.xs	10 Aug 2006 23:13:57 -0000	1.15
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2004-2005 by the cairo perl team (see the file README)
+ * Copyright (c) 2004-2006 by the cairo perl team (see the file README)
  *
  * Licensed under the LGPL, see LICENSE file for more information.
  *
@@ -430,10 +430,14 @@
     OUTPUT:
 	RETVAL
 
+#if CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1, 2, 0)
+
 void cairo_pdf_surface_set_size (cairo_surface_t *surface, double width_in_points, double height_in_points);
 
 #endif
 
+#endif
+
 # --------------------------------------------------------------------------- #
 
 #ifdef CAIRO_HAS_PS_SURFACE
@@ -472,7 +476,9 @@
     OUTPUT:
 	RETVAL
 
-void cairo_ps_surface_set_size (cairo_surface_t	*surface, double width_in_points, double height_in_points);
+#if CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1, 2, 0)
+
+void cairo_ps_surface_set_size (cairo_surface_t *surface, double width_in_points, double height_in_points);
 
 void cairo_ps_surface_dsc_comment (cairo_surface_t *surface, const char *comment);
 
@@ -482,6 +488,8 @@
 
 #endif
 
+#endif
+
 # --------------------------------------------------------------------------- #
 
 # The SVG surface doesn't need the special package treatment because it didn't

Index: ChangeLog
===================================================================
RCS file: /cvs/cairo/cairo-perl/ChangeLog,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- ChangeLog	10 Aug 2006 18:27:31 -0000	1.30
+++ ChangeLog	10 Aug 2006 23:13:57 -0000	1.31
@@ -1,3 +1,10 @@
+2006-08-11	tsch
+
+	* CairoSurface.xs: Patch from Yaakov S puts version guards around
+	a few PDF and PS functions that appeared in 1.2.0.
+
+	* t/CairoSurface.t: Do the same for the corresponding tests.
+
 2006-08-10	tsch
 
 	* Cairo.pm, NEWS, README: Beta release 0.91.



More information about the cairo-commit mailing list