]> git.jsancho.org Git - lugaru.git/blobdiff - Source/MacCompatibility.h
Force a double-buffered GL context.
[lugaru.git] / Source / MacCompatibility.h
index d1096ae609b28c5f058b74d249059a4f686164ba..d49a42b50a309154ed2fd95a041ee7debbb76ad3 100644 (file)
@@ -77,15 +77,15 @@ 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);
+char* ConvertFileName( const char* orgfilename, const char *mode = "rb" );
 
-#define fopen( a, b) fopen( ConvertFileName( a), b)
+#define fopen( a, b) fopen(ConvertFileName(a, b), b)
 /*
 inline float abs( float f)
 {