summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2003-06-04 14:58:20 +0000
committerIlia Alshanetsky <iliaa@php.net>2003-06-04 14:58:20 +0000
commita8c7c3bc5e93a0de0639bd25965a15375db0d04b (patch)
treeee98147779af4212cb062ed17c15b0e19efdfdb5
parent12ecc6ca1e523a5d2e92297d43ba8f1f7a72e66f (diff)
downloadphp-git-a8c7c3bc5e93a0de0639bd25965a15375db0d04b.tar.gz
No need to dupe macro
-rw-r--r--ext/gd/libgd/gd.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ext/gd/libgd/gd.c b/ext/gd/libgd/gd.c
index 5f3e3548b3..7b0411a2b1 100644
--- a/ext/gd/libgd/gd.c
+++ b/ext/gd/libgd/gd.c
@@ -7,9 +7,6 @@
#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 */
@@ -895,7 +892,7 @@ static void gdImageAntiAliasedApply (gdImagePtr im, int px, int py)
* 2.0.14: typo fixed. 2.0.15: moved down below declarations
* to satisfy non-C++ compilers.
*/
- if (!gdImageBoundsSafeMacro(im, px, py)) {
+ if (!gdImageBoundsSafe(im, px, py)) {
return;
}