From 0dcbf7e3756af668cb0acc95d82b0710d351272e Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Sun, 11 Aug 2002 23:56:11 +0000 Subject: [PATCH] -quick hack to allow compilation under windows again -correct solution to follow tomorrow --- ext/gd/libgd/gd.c | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 */ -- 2.50.1