cvs: php4 /ext/gd/libgd gd.c

From: Date: Sun, 11 Aug 2002 23:56:12 +0000
Subject: cvs: php4 /ext/gd/libgd gd.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-13270@lists.php.net to get a copy of this message
helly Sun Aug 11 19:56:12 2002 EDT Modified files: /php4/ext/gd/libgd gd.c Log: -quick hack to allow compilation under windows again -correct solution to follow tomorrow Index: php4/ext/gd/libgd/gd.c diff -u php4/ext/gd/libgd/gd.c:1.8 php4/ext/gd/libgd/gd.c:1.9 --- php4/ext/gd/libgd/gd.c:1.8 Sun Aug 11 15:13:06 2002 +++ php4/ext/gd/libgd/gd.c Sun Aug 11 19:56:11 2002 @@ -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 */

« previous php.cvs (#13270) next »