Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Replace subsurface detection macros

  • Loading branch information...
commit c7136f7af4b683f385db2d30befb6133dc2e8742 1 parent 20e368b
Michael Maclean authored
2  cairo.c
@@ -1241,7 +1241,7 @@ PHP_MINIT_FUNCTION(cairo)
1241 1241
 	PHP_MINIT(cairo_recording_surface)(INIT_FUNC_ARGS_PASSTHRU);
1242 1242
 #endif
1243 1243
 
1244  
-#ifdef CAIRO_HAS_SUB_SURFACE
  1244
+#if CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1, 10, 0)
1245 1245
 	PHP_MINIT(cairo_sub_surface)(INIT_FUNC_ARGS_PASSTHRU);
1246 1246
 #endif
1247 1247
 
4  cairo_sub_surface.c
@@ -28,7 +28,7 @@
28 28
 #include "php_cairo.h"
29 29
 #include "zend_exceptions.h"
30 30
 
31  
-#ifdef CAIRO_HAS_SUB_SURFACE
  31
+#if CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1, 10, 0)
32 32
 
33 33
 zend_class_entry *cairo_ce_cairosubsurface;
34 34
 
@@ -41,7 +41,7 @@ PHP_METHOD(CairoSubSurface, __construct)
41 41
 /* }}} */
42 42
 
43 43
 const zend_function_entry cairo_sub_surface_methods[] = {
44  
-    PHP_ME(CairoSubSurface, __construct, CairoSubSurface___construct_args, ZEND_ACC_PUBLIC | ZEND_ACC_CTOR)
  44
+    PHP_ME(CairoSubSurface, __construct, NULL, ZEND_ACC_PUBLIC | ZEND_ACC_CTOR)
45 45
     {NULL, NULL, NULL}
46 46
 };
47 47
 
2  cairo_surface.c
@@ -709,7 +709,7 @@ zend_class_entry* php_cairo_get_surface_ce(cairo_surface_t *surface TSRMLS_DC)
709 709
 			type = get_CairoQuartzSurface_ce_ptr();
710 710
 			break;
711 711
 #endif */
712  
-#ifdef CAIRO_HAS_SUB_SURFACE
  712
+#if CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1, 10, 0)
713 713
 		case CAIRO_SURFACE_TYPE_SUBSURFACE:
714 714
 			type = cairo_ce_cairosubsurface;
715 715
 			break;

0 notes on commit c7136f7

Please sign in to comment.
Something went wrong with that request. Please try again.