]> granicus.if.org Git - php/commitdiff
-quick hack to allow compilation under windows again
authorMarcus Boerger <helly@php.net>
Sun, 11 Aug 2002 23:56:11 +0000 (23:56 +0000)
committerMarcus Boerger <helly@php.net>
Sun, 11 Aug 2002 23:56:11 +0000 (23:56 +0000)
-correct solution to follow tomorrow

ext/gd/libgd/gd.c

index ac5a19a66d06726c47f94158fa89a65818b39dfd..35a31a2f9fe85243c294b4b136af299087504642 100644 (file)
 #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 */