Files
@ r11789:1af8e5bdde25
Branch filter:
Location: cpp/openttd-patchpack/source/src/os/macosx/osx_stdafx.h - annotation
r11789:1af8e5bdde25
1.1 KiB
text/x-c
(svn r16184) -Update: WebTranslator2 update to 2009-04-29 17:32:47
estonian - 6 changed by kristjans (6)
french - 10 fixed by glx (10)
polish - 17 fixed by xaxa (17)
simplified_chinese - 25 fixed, 6 changed by ww9980 (31)
estonian - 6 changed by kristjans (6)
french - 10 fixed by glx (10)
polish - 17 fixed by xaxa (17)
simplified_chinese - 25 fixed, 6 changed by ww9980 (31)
r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r9111:983de9c5a848 r9111:983de9c5a848 r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r11541:aaf650313134 r11541:aaf650313134 r11541:aaf650313134 r11782:7b1b84af086c r11541:aaf650313134 r11526:ee46e584d4c5 r11526:ee46e584d4c5 r11526:ee46e584d4c5 r11526:ee46e584d4c5 r11526:ee46e584d4c5 r11526:ee46e584d4c5 r11526:ee46e584d4c5 r11526:ee46e584d4c5 r11526:ee46e584d4c5 r11526:ee46e584d4c5 r5475:3f5cd13d1b63 r11526:ee46e584d4c5 r11363:6906c490a00e r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r8127:686810306867 r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r5475:3f5cd13d1b63 r11526:ee46e584d4c5 r11526:ee46e584d4c5 r11526:ee46e584d4c5 r11526:ee46e584d4c5 r11526:ee46e584d4c5 r11526:ee46e584d4c5 r11526:ee46e584d4c5 r11526:ee46e584d4c5 r11526:ee46e584d4c5 r11526:ee46e584d4c5 r11526:ee46e584d4c5 r5475:3f5cd13d1b63 | /* $Id$ */
/** @file osx_stdafx.h OSX is different on some places. */
#ifndef MACOS_STDAFX_H
#define MACOS_STDAFX_H
/* We need to include this first as that "depends" on the compiler's setting
* of __LP64__. So before we define __LP64__ so it can be used. */
#include <sys/cdefs.h>
#include <unistd.h>
/* __LP64__ only exists in 10.5 and higher */
#if defined(__APPLE__) && !defined(__LP64__)
# define __LP64__ 0
#endif
/* Check for mismatching 'architectures' */
#if (__LP64__ && !defined(_SQ64)) || (!__LP64__ && defined(_SQ64))
# error "Compiling 64 bits without _SQ64 set! (or vice versa)"
#endif
#include <CoreServices/CoreServices.h>
/* remove the variables that CoreServices defines, but we define ourselves too */
#undef bool
#undef false
#undef true
/* Name conflict */
#define GetTime OTTD_GetTime
#define SL_ERROR OSX_SL_ERROR
/* NSInteger and NSUInteger are part of 10.5 and higher. */
#ifndef NSInteger
#if __LP64__
typedef long NSInteger;
typedef unsigned long NSUInteger;
#else
typedef int NSInteger;
typedef unsigned int NSUInteger;
#endif /* __LP64__ */
#endif /* NSInteger */
#endif /* MACOS_STDAFX_H */
|