X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FMacCompatibility.h;h=808c057d0ceecf6a3ff9829e9b6a37e822fa1c65;hb=21af29986bbe6c1ab71c8c68244cf3250caf15f6;hp=932d0a0fdfa7b85d237048f125a4e898f01bb68b;hpb=43f08119f2408a487dbefcf670bb6c8f47d4c49b;p=lugaru.git diff --git a/Source/MacCompatibility.h b/Source/MacCompatibility.h index 932d0a0..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) {