X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FMacCompatibility.h;h=d49a42b50a309154ed2fd95a041ee7debbb76ad3;hb=3c8f67c3c66a86fc9e45469ce2fed4222d486c9f;hp=d1096ae609b28c5f058b74d249059a4f686164ba;hpb=d9bff07d8752bf235679170c94faf3501ccd7627;p=lugaru.git diff --git a/Source/MacCompatibility.h b/Source/MacCompatibility.h index d1096ae..d49a42b 100644 --- a/Source/MacCompatibility.h +++ b/Source/MacCompatibility.h @@ -77,15 +77,15 @@ inline bool isnormal( double x) int ret = _fpclass( x); return (ret == _FPCLASS_NN || ret == _FPCLASS_PN); } +#else +#include #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) {