summaryrefslogtreecommitdiff
path: root/src/os
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-04-01 02:58:38 +0000
committerrubidium <rubidium@openttd.org>2009-04-01 02:58:38 +0000
commit8f831ceebc054abc9d9abf1591bb0ebea9e4b5ab (patch)
treee6f0ef639db41b8afd54f4e724cd31783fddb12f /src/os
parente2e95af94556707f437a38d424fc2d1dba76ac29 (diff)
downloadopenttd-8f831ceebc054abc9d9abf1591bb0ebea9e4b5ab.tar.xz
(svn r15909) -Fix (r15892): Apple, PLEASE do not fill your API with #if !__LP64__. Especially when another part of your API depends on whether __LP64__ is defined and thus making it non-trivial to silence the warnings from the undefinedness of __LP64__ in #if !__LP64__...
Diffstat (limited to 'src/os')
-rw-r--r--src/os/macosx/osx_stdafx.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/os/macosx/osx_stdafx.h b/src/os/macosx/osx_stdafx.h
index 8faa26e5c..35cf21eee 100644
--- a/src/os/macosx/osx_stdafx.h
+++ b/src/os/macosx/osx_stdafx.h
@@ -5,6 +5,10 @@
#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>
+
/* __LP64__ only exists in 10.5 and higher */
#if defined(__APPLE__) && !defined(__LP64__)
# define __LP64__ 0