Go to the documentation of this file.
10 #ifndef MACOS_STDAFX_H
11 #define MACOS_STDAFX_H
14 #include <AvailabilityMacros.h>
17 #ifdef MAC_OS_X_VERSION_10_7
18 #define HAVE_OSX_107_SDK
21 #ifdef MAC_OS_X_VERSION_10_9
22 #define HAVE_OSX_109_SDK
25 #ifdef MAC_OS_X_VERSION_10_11
26 #define HAVE_OSX_1011_SDK
30 #ifndef MAC_OS_X_VERSION_10_3
31 #define MAC_OS_X_VERSION_10_3 1030
34 #ifndef MAC_OS_X_VERSION_10_4
35 #define MAC_OS_X_VERSION_10_4 1040
38 #ifndef MAC_OS_X_VERSION_10_5
39 #define MAC_OS_X_VERSION_10_5 1050
42 #ifndef MAC_OS_X_VERSION_10_6
43 #define MAC_OS_X_VERSION_10_6 1060
46 #ifndef MAC_OS_X_VERSION_10_7
47 #define MAC_OS_X_VERSION_10_7 1070
50 #ifndef MAC_OS_X_VERSION_10_8
51 #define MAC_OS_X_VERSION_10_8 1080
54 #ifndef MAC_OS_X_VERSION_10_9
55 #define MAC_OS_X_VERSION_10_9 1090
58 #ifndef MAC_OS_X_VERSION_10_10
59 #define MAC_OS_X_VERSION_10_10 101000
62 #ifndef MAC_OS_X_VERSION_10_11
63 #define MAC_OS_X_VERSION_10_11 101100
66 #define __STDC_LIMIT_MACROS
71 #if !defined(__clang__) && defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3))
72 # include <debug/debug.h>
76 #if !defined(STRGEN) && !defined(SETTINGSGEN) && ((defined(__LP64__) && !defined(_SQ64)) || (!defined(__LP64__) && defined(_SQ64)))
77 # error "Compiling 64 bits without _SQ64 set! (or vice versa)"
82 #define Point OTTDPoint
83 #define WindowClass OTTDWindowClass
84 #define ScriptOrder OTTDScriptOrder
85 #define Palette OTTDPalette
86 #define GlyphID OTTDGlyphID
88 #include <CoreServices/CoreServices.h>
89 #include <ApplicationServices/ApplicationServices.h>
104 #define GetTime OTTD_GetTime
106 #define SL_ERROR OSX_SL_ERROR
111 typedef long NSInteger;
112 typedef unsigned long NSUInteger;
114 typedef int NSInteger;
115 typedef unsigned int NSUInteger;
119 #ifndef CGFLOAT_DEFINED
121 typedef double CGFloat;
123 typedef float CGFloat;
128 #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
129 # define HAVE_NON_CONST_ICONV