diff --git a/ext/gd/libgd/gdft.c b/ext/gd/libgd/gdft.c index 620ff9c7a20..75c23c7481e 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 {