]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/extended.c
Backed-out PNG8 patch (no time to look at why
[wxWidgets.git] / src / common / extended.c
index af12b013f0f4d521fd65224333a7cd7605a9c5e2..1e9b9c7b8e315514e78c87d8eb9f2cddf1b012b1 100644 (file)
@@ -8,6 +8,11 @@
 *****************************************************************************/
 
 
+#include <stdio.h>
+#include <stdlib.h>
+#include <ctype.h>
+#include <limits.h>
+#include <string.h>
 #include "wx/defs.h"
 
 #if wxUSE_APPLE_IEEE
@@ -76,7 +81,7 @@
 # define FloatToUnsigned(f)    ((wxUint32)(f))
 # define UnsignedToFloat(u)    ((wxFloat64)(u))
 #else /*applec*/
-# define FloatToUnsigned(f)    ((wxUint32)((((wxInt32)((f) - 2147483648.0)) + 2147483647L) + 1))
+# define FloatToUnsigned(f)    ((wxUint32)(((wxInt32)((f) - 2147483648.0)) + 2147483647L) + 1)
 # define UnsignedToFloat(u)    (((wxFloat64)((wxInt32)((u) - 2147483647L - 1))) + 2147483648.0)
 #endif /*applec*/