]> git.jsancho.org Git - lugaru.git/blobdiff - Source/WinDefs.h
mingw32: Fix issues with WIN32 not being defined
[lugaru.git] / Source / WinDefs.h
index de92c5f7180534c0cab82776ddcd9b26f27757f2..2609273cd873fa9486ba1e99b52393e0bdf271f4 100644 (file)
@@ -63,7 +63,7 @@ typedef struct AbsoluteTime {
     unsigned long   lo;
 } AbsoluteTime;
 
-AbsoluteTime UpTime();         // NOTE: returns time since app started, not system start
+AbsoluteTime UpTime(); // NOTE: returns time since app started, not system start
 
 typedef long Duration;
 
@@ -84,8 +84,8 @@ Duration AbsoluteDeltaToDuration( AbsoluteTime& a, AbsoluteTime& b);
 /*
 inline bool isnormal( double x)
 {
-       int ret = _fpclass( x);
-       return (ret == _FPCLASS_NN || ret == _FPCLASS_PN);
+    int ret = _fpclass( x);
+    return (ret == _FPCLASS_NN || ret == _FPCLASS_PN);
 }
 */
 
@@ -99,6 +99,7 @@ char* ConvertFileName( const char* orgfilename, const char* junk);
 
 #define fopen(a, b) fopen(ConvertFileName(a), b);
 
+#ifndef __MINGW32__
 inline float abs(float f)
 {
     if (f < 0)
@@ -112,6 +113,7 @@ inline double abs(double f)
         return -f;
     return f;
 }
+#endif // __MINGW32__
 
 
 #endif