changeset 11546:17c669ba1319 draft

(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__...
author rubidium <rubidium@openttd.org>
date Wed, 01 Apr 2009 02:58:38 +0000
parents 907f3cfd672e
children ac73bd5420ca
files src/os/macosx/osx_stdafx.h
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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