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

index a25a6f2afd4f7d9569eb8e3885ea2e412ff4cda8..5f3e3548b356b609920ee2125fafdceb98287cd4 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 */