]> granicus.if.org Git - php/commitdiff
Fix build
authorfoobar <sniper@php.net>
Wed, 4 Jun 2003 05:30:45 +0000 (05:30 +0000)
committerfoobar <sniper@php.net>
Wed, 4 Jun 2003 05:30:45 +0000 (05:30 +0000)
ext/gd/libgd/gd.c

index fbd63be86fcc5b354ee198fb761bdd624328abee..76161f2af9c961f91d06c66f182922800523bba0 100644 (file)
@@ -7,6 +7,9 @@
 
 #include "php.h"
 
+/* 2.0.12: this now checks the clipping rectangle */
+#define gdImageBoundsSafeMacro(im, x, y) (!((((y) < (im)->cy1) || ((y) > (im)->cy2)) || (((x) < (im)->cx1) || ((x) > (im)->cx2))))
+
 #ifdef _MSC_VER
 # if _MSC_VER >= 1300
 /* in MSVC.NET the these are available but only for __cplusplus and not _MSC_EXTENSIONS */