]> granicus.if.org Git - php/commitdiff
include php.h to have VIRTUAL_DIR defined this
authorDaniel Beulshausen <dbeu@php.net>
Mon, 16 Oct 2000 13:55:47 +0000 (13:55 +0000)
committerDaniel Beulshausen <dbeu@php.net>
Mon, 16 Oct 2000 13:55:47 +0000 (13:55 +0000)
should fix bugs where the ttf functions won't
find the font in the actual working dir
# like under windows :)

ext/gd/gdttf.c

index ee58481e4cf374e2f84a86bcdf9dc84da6be38ff..0be895fb7b93e67bf6aeaeb95e832c6fe9d3e453 100644 (file)
@@ -4,7 +4,9 @@
 
 /* $Id$ */
 
-#if WIN32|WINNT
+#include "php.h"
+
+#if PHP_WIN32
 #include "config.w32.h"
 #else
 #include "php_config.h"
@@ -44,6 +46,7 @@ extern int gdImageColorResolve(gdImagePtr, int, int, int);
 #define RESOLUTION 72
 
 /* Number of colors used for anti-aliasing */
+#undef NUMCOLORS
 #define NUMCOLORS 4
 
 /* Line separation as a factor of font height.  
@@ -56,8 +59,12 @@ extern int gdImageColorResolve(gdImagePtr, int, int, int);
 #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 {
        char                            *fontname;      /* key */