From 7c0929d838b89843ccca9d679b3963ff8bdd35b8 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sat, 31 Oct 2009 15:26:40 -0400 Subject: [PATCH] Cleaned up some things that don't compile on Mac OS X. --- Source/MacCompatibility.cpp | 1 + Source/MacCompatibility.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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" ); -- 2.39.2