Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00012 #ifndef MACOS_STDAFX_H
00013 #define MACOS_STDAFX_H
00014
00015
00016
00017 #ifndef MAC_OS_X_VERSION_10_3
00018 #define MAC_OS_X_VERSION_10_3 1030
00019 #endif
00020
00021 #ifndef MAC_OS_X_VERSION_10_4
00022 #define MAC_OS_X_VERSION_10_4 1040
00023 #endif
00024
00025 #ifndef MAC_OS_X_VERSION_10_5
00026 #define MAC_OS_X_VERSION_10_5 1050
00027 #endif
00028
00029 #ifndef MAC_OS_X_VERSION_10_6
00030 #define MAC_OS_X_VERSION_10_6 1060
00031 #endif
00032
00033 #ifndef MAC_OS_X_VERSION_10_7
00034 #define MAC_OS_X_VERSION_10_7 1070
00035 #endif
00036
00037 #ifndef MAC_OS_X_VERSION_10_8
00038 #define MAC_OS_X_VERSION_10_8 1080
00039 #endif
00040
00041 #ifndef MAC_OS_X_VERSION_10_9
00042 #define MAC_OS_X_VERSION_10_9 1090
00043 #endif
00044
00045
00046 #define __STDC_LIMIT_MACROS
00047 #include <stdint.h>
00048
00049
00050
00051 #include <sys/cdefs.h>
00052 #include <unistd.h>
00053
00054
00055
00056 #if !defined(__clang__) && defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3))
00057 # include <debug/debug.h>
00058 #endif
00059
00060
00061 #if defined(__APPLE__) && !defined(__LP64__)
00062 # define __LP64__ 0
00063 #endif
00064
00065
00066 #if !defined(STRGEN) && !defined(SETTINGSGEN) && ((__LP64__ && !defined(_SQ64)) || (!__LP64__ && defined(_SQ64)))
00067 # error "Compiling 64 bits without _SQ64 set! (or vice versa)"
00068 #endif
00069
00070 #include <AvailabilityMacros.h>
00071
00072
00073 #define Rect OTTDRect
00074 #define Point OTTDPoint
00075 #define WindowClass OTTDWindowClass
00076 #define ScriptOrder OTTDScriptOrder
00077 #define Palette OTTDPalette
00078 #define GlyphID OTTDGlyphID
00079
00080 #include <CoreServices/CoreServices.h>
00081 #include <ApplicationServices/ApplicationServices.h>
00082
00083 #undef Rect
00084 #undef Point
00085 #undef WindowClass
00086 #undef ScriptOrder
00087 #undef Palette
00088 #undef GlyphID
00089
00090
00091 #undef bool
00092 #undef false
00093 #undef true
00094
00095
00096 #define GetTime OTTD_GetTime
00097
00098 #define SL_ERROR OSX_SL_ERROR
00099
00100
00101 #ifndef NSInteger
00102 #if __LP64__
00103 typedef long NSInteger;
00104 typedef unsigned long NSUInteger;
00105 #else
00106 typedef int NSInteger;
00107 typedef unsigned int NSUInteger;
00108 #endif
00109 #endif
00110
00111 #ifndef CGFLOAT_DEFINED
00112 #if __LP64__
00113 typedef double CGFloat;
00114 #else
00115 typedef float CGFloat;
00116 #endif
00117 #endif
00118
00119
00120 #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
00121 # define HAVE_NON_CONST_ICONV
00122 #endif
00123
00124 #endif