(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__...

This commit is contained in:
rubidium 2009-04-01 02:58:38 +00:00
parent e2e95af945
commit 8f831ceebc
1 changed files with 4 additions and 0 deletions

View File

@ -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