diff options
Diffstat (limited to 'src/os/macosx/osx_stdafx.h')
-rw-r--r-- | src/os/macosx/osx_stdafx.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/os/macosx/osx_stdafx.h b/src/os/macosx/osx_stdafx.h index 9255ae3c0..ee150dd8b 100644 --- a/src/os/macosx/osx_stdafx.h +++ b/src/os/macosx/osx_stdafx.h @@ -20,15 +20,27 @@ # error "Compiling 64 bits without _SQ64 set! (or vice versa)" #endif +#define MAC_OS_X_VERSION_MIN_REQUIRED MAC_OS_X_VERSION_10_3 +#include <AvailabilityMacros.h> + +/* Name conflict */ +#define Rect OTTDRect +#define Point OTTDPoint +#define WindowClass OTTDWindowClass + #include <CoreServices/CoreServices.h> +#undef Rect +#undef Point +#undef WindowClass + /* remove the variables that CoreServices defines, but we define ourselves too */ #undef bool #undef false #undef true /* Name conflict */ -#define GetTime OTTD_GetTime +#define GetTime OTTD_GetTime #define SL_ERROR OSX_SL_ERROR |