summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/gd/libgd/gdft.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/gd/libgd/gdft.c b/ext/gd/libgd/gdft.c
index 620ff9c7a2..75c23c7481 100644
--- a/ext/gd/libgd/gdft.c
+++ b/ext/gd/libgd/gdft.c
@@ -86,8 +86,13 @@ gdImageStringFT (gdImage * im, int *brect, int fg, char *fontlist,
#define TRUE !FALSE
#endif
+#ifndef MAX
#define MAX(a,b) ((a)>(b)?(a):(b))
+#endif
+
+#ifndef MIN
#define MIN(a,b) ((a)<(b)?(a):(b))
+#endif
typedef struct
{