]> granicus.if.org Git - php/commitdiff
- silent warnings
authorPierre Joye <pajoye@php.net>
Tue, 26 May 2009 19:56:17 +0000 (19:56 +0000)
committerPierre Joye <pajoye@php.net>
Tue, 26 May 2009 19:56:17 +0000 (19:56 +0000)
ext/gd/libgd/gd.c

index 78bf10fe001fe33420ab504589bec71ef4f5fbd8..0a361d190a11702f4f3285b338bc9f52ae1c5c7a 100644 (file)
@@ -26,11 +26,15 @@ extern float floorf(float x);
 #endif
 #if HAVE_FABSF == 0
 /* float fabsf(float x); */
-# define fabsf(x) ((float)(fabs(x)))
+# ifndef fabsf
+#  define fabsf(x) ((float)(fabs(x)))
+# endif
 #endif
 #if HAVE_FLOORF == 0
+# ifndef floorf
 /* float floorf(float x);*/
-#define floorf(x) ((float)(floor(x)))
+#  define floorf(x) ((float)(floor(x)))
+# endif
 #endif
 
 #ifdef _OSD_POSIX              /* BS2000 uses the EBCDIC char set instead of ASCII */