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
29 #ifdef MAC_OS_X_VERSION_10_12
30 #define HAVE_OSX_1012_SDK
33 #ifdef MAC_OS_X_VERSION_10_15
34 #define HAVE_OSX_1015_SDK
38 #ifndef MAC_OS_X_VERSION_10_3
39 #define MAC_OS_X_VERSION_10_3 1030
42 #ifndef MAC_OS_X_VERSION_10_4
43 #define MAC_OS_X_VERSION_10_4 1040
46 #ifndef MAC_OS_X_VERSION_10_5
47 #define MAC_OS_X_VERSION_10_5 1050
50 #ifndef MAC_OS_X_VERSION_10_6
51 #define MAC_OS_X_VERSION_10_6 1060
54 #ifndef MAC_OS_X_VERSION_10_7
55 #define MAC_OS_X_VERSION_10_7 1070
58 #ifndef MAC_OS_X_VERSION_10_8
59 #define MAC_OS_X_VERSION_10_8 1080
62 #ifndef MAC_OS_X_VERSION_10_9
63 #define MAC_OS_X_VERSION_10_9 1090
66 #ifndef MAC_OS_X_VERSION_10_10
67 #define MAC_OS_X_VERSION_10_10 101000
70 #ifndef MAC_OS_X_VERSION_10_11
71 #define MAC_OS_X_VERSION_10_11 101100
74 #define __STDC_LIMIT_MACROS
79 #if !defined(__clang__) && defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3))
80 # include <debug/debug.h>
84 #if !defined(STRGEN) && !defined(SETTINGSGEN) && ((defined(__LP64__) && !defined(POINTER_IS_64BIT)) || (!defined(__LP64__) && defined(POINTER_IS_64BIT)))
85 # error "Compiling 64 bits without POINTER_IS_64BIT set! (or vice versa)"
90 #define Point OTTDPoint
91 #define WindowClass OTTDWindowClass
92 #define ScriptOrder OTTDScriptOrder
93 #define Palette OTTDPalette
94 #define GlyphID OTTDGlyphID
96 #include <CoreServices/CoreServices.h>
97 #include <ApplicationServices/ApplicationServices.h>
112 #define GetTime OTTD_GetTime
114 #define SL_ERROR OSX_SL_ERROR
119 typedef long NSInteger;
120 typedef unsigned long NSUInteger;
122 typedef int NSInteger;
123 typedef unsigned int NSUInteger;
127 #ifndef CGFLOAT_DEFINED
129 typedef double CGFloat;
131 typedef float CGFloat;
136 #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
137 # define HAVE_NON_CONST_ICONV