From 8f831ceebc054abc9d9abf1591bb0ebea9e4b5ab Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 1 Apr 2009 02:58:38 +0000 Subject: (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__... --- src/os/macosx/osx_stdafx.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/os/macosx') 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 + /* __LP64__ only exists in 10.5 and higher */ #if defined(__APPLE__) && !defined(__LP64__) # define __LP64__ 0 -- cgit v1.2.3-54-g00ecf