From: Ryan C. Gordon Date: Sat, 31 Oct 2009 19:26:40 +0000 (-0400) Subject: Cleaned up some things that don't compile on Mac OS X. X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=7c0929d838b89843ccca9d679b3963ff8bdd35b8;p=lugaru.git Cleaned up some things that don't compile on Mac OS X. --- diff --git a/Source/MacCompatibility.cpp b/Source/MacCompatibility.cpp index e1226b6..a6b4d70 100644 --- a/Source/MacCompatibility.cpp +++ b/Source/MacCompatibility.cpp @@ -16,6 +16,7 @@ #if PLATFORM_UNIX #include #include +#include #include typedef long long __int64; typedef __int64 LARGE_INTEGER; diff --git a/Source/MacCompatibility.h b/Source/MacCompatibility.h index 808c057..d49a42b 100644 --- a/Source/MacCompatibility.h +++ b/Source/MacCompatibility.h @@ -77,10 +77,10 @@ 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, const char *mode = "rb" );