X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d4052bcb78b0ba58ec357b47faa15c92465def20..08422003083270640e23c2563a5fa72d131add96:/src/common/extended.c diff --git a/src/common/extended.c b/src/common/extended.c index a356aa1d55..1e9b9c7b8e 100644 --- a/src/common/extended.c +++ b/src/common/extended.c @@ -8,6 +8,11 @@ *****************************************************************************/ +#include +#include +#include +#include +#include #include "wx/defs.h" #if wxUSE_APPLE_IEEE @@ -61,7 +66,7 @@ #ifndef HUGE_VAL # define HUGE_VAL HUGE -#endif HUGE_VAL +#endif /*HUGE_VAL*/ /**************************************************************** @@ -75,11 +80,10 @@ #ifdef applec /* The Apple C compiler works */ # define FloatToUnsigned(f) ((wxUint32)(f)) # define UnsignedToFloat(u) ((wxFloat64)(u)) -#else applec -# define FloatToUnsigned(f) ((wxUint32)(((wxInt32)((f) - 2147483648.0)) + 2147483647L + 1)) +#else /*applec*/ +# define FloatToUnsigned(f) ((wxUint32)(((wxInt32)((f) - 2147483648.0)) + 2147483647L) + 1) # define UnsignedToFloat(u) (((wxFloat64)((wxInt32)((u) - 2147483647L - 1))) + 2147483648.0) -#endif applec - +#endif /*applec*/