]> git.jsancho.org Git - lugaru.git/commitdiff
Cleaned up some things that don't compile on Mac OS X.
authorRyan C. Gordon <icculus@icculus.org>
Sat, 31 Oct 2009 19:26:40 +0000 (15:26 -0400)
committerRyan C. Gordon <icculus@icculus.org>
Sat, 31 Oct 2009 19:26:40 +0000 (15:26 -0400)
Source/MacCompatibility.cpp
Source/MacCompatibility.h

index e1226b608dc32edd854176e8d7b2bd56888b3257..a6b4d70e8160f7cff9c6a25d04de08d82bbedb1c 100644 (file)
@@ -16,6 +16,7 @@
 #if PLATFORM_UNIX
 #include <unistd.h>
 #include <sys/time.h>
+#include <sys/stat.h>
 #include <assert.h>
 typedef long long __int64;
 typedef __int64 LARGE_INTEGER;
index 808c057d0ceecf6a3ff9829e9b6a37e822fa1c65..d49a42b50a309154ed2fd95a041ee7debbb76ad3 100644 (file)
@@ -77,10 +77,10 @@ inline bool isnormal( double x)
        int ret = _fpclass( x);
        return (ret == _FPCLASS_NN || ret == _FPCLASS_PN);
 }
+#else
+#include <stdint.h>
 #endif
 
-typedef unsigned int uintptr_t;
-
 
 // fix file names to use '/' instead of ':'
 char* ConvertFileName( const char* orgfilename, const char *mode = "rb" );