X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FMacCompatibility.h;h=808c057d0ceecf6a3ff9829e9b6a37e822fa1c65;hb=65fe5d46ff8f86bcf08cf61012f04e3a3d4bc30e;hp=d1096ae609b28c5f058b74d249059a4f686164ba;hpb=d9bff07d8752bf235679170c94faf3501ccd7627;p=lugaru.git diff --git a/Source/MacCompatibility.h b/Source/MacCompatibility.h index d1096ae..808c057 100644 --- a/Source/MacCompatibility.h +++ b/Source/MacCompatibility.h @@ -83,9 +83,9 @@ 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) {