From 269a3ad5ad81c81380a42422761698f1a3bfdec4 Mon Sep 17 00:00:00 2001 From: foobar Date: Wed, 4 Jun 2003 05:30:45 +0000 Subject: [PATCH] Fix build --- ext/gd/libgd/gd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/gd/libgd/gd.c b/ext/gd/libgd/gd.c index fbd63be86f..76161f2af9 100644 --- a/ext/gd/libgd/gd.c +++ b/ext/gd/libgd/gd.c @@ -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 */ -- 2.50.1