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 #define __STDC_LIMIT_MACROS
00016 #include <stdint.h>
00017
00018
00019
00020 #include <sys/cdefs.h>
00021 #include <unistd.h>
00022
00023
00024
00025 #if defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3))
00026 # include <debug/debug.h>
00027 #endif
00028
00029
00030 #if defined(__APPLE__) && !defined(__LP64__)
00031 # define __LP64__ 0
00032 #endif
00033
00034
00035 #if !defined(STRGEN) && !defined(SETTINGSGEN) && ((__LP64__ && !defined(_SQ64)) || (!__LP64__ && defined(_SQ64)))
00036 # error "Compiling 64 bits without _SQ64 set! (or vice versa)"
00037 #endif
00038
00039 #include <AvailabilityMacros.h>
00040
00041
00042 #define Rect OTTDRect
00043 #define Point OTTDPoint
00044 #define WindowClass OTTDWindowClass
00045 #define ScriptOrder OTTDScriptOrder
00046 #define Palette OTTDPalette
00047 #define GlyphID OTTDGlyphID
00048
00049 #include <CoreServices/CoreServices.h>
00050 #include <ApplicationServices/ApplicationServices.h>
00051
00052 #undef Rect
00053 #undef Point
00054 #undef WindowClass
00055 #undef ScriptOrder
00056 #undef Palette
00057 #undef GlyphID
00058
00059
00060 #undef bool
00061 #undef false
00062 #undef true
00063
00064
00065 #define GetTime OTTD_GetTime
00066
00067 #define SL_ERROR OSX_SL_ERROR
00068
00069
00070 #ifndef NSInteger
00071 #if __LP64__
00072 typedef long NSInteger;
00073 typedef unsigned long NSUInteger;
00074 #else
00075 typedef int NSInteger;
00076 typedef unsigned int NSUInteger;
00077 #endif
00078 #endif
00079
00080
00081 #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
00082 # define HAVE_NON_CONST_ICONV
00083 #endif
00084
00085 #endif