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 #if !defined(__clang__) && defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3))
00052 # include <debug/debug.h>
00053 #endif
00054
00055
00056 #if !defined(STRGEN) && !defined(SETTINGSGEN) && ((defined(__LP64__) && !defined(_SQ64)) || (!defined(__LP64__) && defined(_SQ64)))
00057 # error "Compiling 64 bits without _SQ64 set! (or vice versa)"
00058 #endif
00059
00060 #include <AvailabilityMacros.h>
00061
00062
00063 #define Rect OTTDRect
00064 #define Point OTTDPoint
00065 #define WindowClass OTTDWindowClass
00066 #define ScriptOrder OTTDScriptOrder
00067 #define Palette OTTDPalette
00068 #define GlyphID OTTDGlyphID
00069
00070 #include <CoreServices/CoreServices.h>
00071 #include <ApplicationServices/ApplicationServices.h>
00072
00073 #undef Rect
00074 #undef Point
00075 #undef WindowClass
00076 #undef ScriptOrder
00077 #undef Palette
00078 #undef GlyphID
00079
00080
00081 #undef bool
00082 #undef false
00083 #undef true
00084
00085
00086 #define GetTime OTTD_GetTime
00087
00088 #define SL_ERROR OSX_SL_ERROR
00089
00090
00091 #ifndef NSInteger
00092 #ifdef __LP64__
00093 typedef long NSInteger;
00094 typedef unsigned long NSUInteger;
00095 #else
00096 typedef int NSInteger;
00097 typedef unsigned int NSUInteger;
00098 #endif
00099 #endif
00100
00101 #ifndef CGFLOAT_DEFINED
00102 #ifdef __LP64__
00103 typedef double CGFloat;
00104 #else
00105 typedef float CGFloat;
00106 #endif
00107 #endif
00108
00109
00110 #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
00111 # define HAVE_NON_CONST_ICONV
00112 #endif
00113
00114 #endif