diff options
| author | Marcus Boerger <helly@php.net> | 2002-08-11 23:56:11 +0000 |
|---|---|---|
| committer | Marcus Boerger <helly@php.net> | 2002-08-11 23:56:11 +0000 |
| commit | 0dcbf7e3756af668cb0acc95d82b0710d351272e (patch) | |
| tree | 8083a23188c5f5eb4cec50a30cd30907a29520d0 | |
| parent | 663a457eb81ec80a30434dd42d45002b11edde8c (diff) | |
| download | php-git-0dcbf7e3756af668cb0acc95d82b0710d351272e.tar.gz | |
-quick hack to allow compilation under windows again
-correct solution to follow tomorrow
| -rw-r--r-- | ext/gd/libgd/gd.c | 10 |
1 files changed, 10 insertions, 0 deletions
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 */ |
