From: Marcus Boerger Date: Sun, 11 Aug 2002 23:56:11 +0000 (+0000) Subject: -quick hack to allow compilation under windows again X-Git-Tag: php-4.3.0dev_zend2_alpha3~133 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0dcbf7e3756af668cb0acc95d82b0710d351272e;p=php -quick hack to allow compilation under windows again -correct solution to follow tomorrow --- diff --git a/ext/gd/libgd/gd.c b/ext/gd/libgd/gd.c index ac5a19a66d..35a31a2f9f 100644 --- a/ext/gd/libgd/gd.c +++ b/ext/gd/libgd/gd.c @@ -12,6 +12,16 @@ #endif /*_OSD_POSIX*/ +#ifdef _MSC_VER +#if _MSC_VER < 1300 +/* following functions are available since MSVC.NET, emulate for earlier versions */ +/* float fabsf(float x); */ +#define fabsf(x) ((float)(abs(x))) +/* float floorf(float x);*/ +#define floorf(x) ((float)(floor(x))) +#endif +#endif + #ifndef CHARSET_EBCDIC #define ASC(ch) ch #else /*CHARSET_EBCDIC */