]> git.jsancho.org Git - lugaru.git/blobdiff - Source/WinDefs.h
get it to compile on my mingw setup
[lugaru.git] / Source / WinDefs.h
index e598863b4151e066ab4b8fd9753b339e27fd05e4..e7d05708aa59c0f80c982b04dcee9581b77ae7cd 100644 (file)
@@ -25,7 +25,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
 
 #include <stdio.h>
-#include <float.h>
+#include <math.h>
 
 // stuff to make Mac code compatable with Windows
 
@@ -42,7 +42,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
 typedef bool Boolean;
 
-
 struct Point
 {
        short v;
@@ -85,11 +84,13 @@ enum
 Duration AbsoluteDeltaToDuration( AbsoluteTime& a, AbsoluteTime& b);
 
 
+/*
 inline bool isnormal( double x)
 {
        int ret = _fpclass( x);
        return (ret == _FPCLASS_NN || ret == _FPCLASS_PN);
 }
+*/
 
 typedef unsigned int uintptr_t;
 
@@ -99,16 +100,16 @@ char* ConvertFileName( const char* orgfilename);
 char* ConvertFileName( const char* orgfilename, const char* junk);
 
 
-#define fopen( a, b) fopen( ConvertFileName( a), b);
+#define fopen(a, b) fopen(ConvertFileName(a), b);
 
-inline float abs( float f)
+inline float abs(float f)
 {
        if (f < 0)
                return -f;
        return f;
 }
 
-inline double abs( double f)
+inline double abs(double f)
 {
        if (f < 0)
                return -f;