diff options
author | Steven Noonan <steven@uplinklabs.net> | 2011-12-03 20:50:39 -0800 |
---|---|---|
committer | Steven Noonan <steven@uplinklabs.net> | 2011-12-03 22:28:51 -0800 |
commit | a2bf2416a7a68325a4c98be034f943810b4ff39c (patch) | |
tree | 2064fc962155aa01a257ca3597812aed41d3740e /crawl-ref/source/AppHdr.h | |
parent | c286621358778dfc9869ac8cc094f8c6fde1dd06 (diff) | |
download | crawl-ref-a2bf2416a7a68325a4c98be034f943810b4ff39c.tar.gz crawl-ref-a2bf2416a7a68325a4c98be034f943810b4ff39c.zip |
AppHdr.h: add ifndef __OBJC__ to skip pointless compile errors with Xcode project
Xcode generates a precompiled header for Ojective-C, which doesn't
work correctly with some of the headers we have. We don't even use
Objective-C, aside from the necessary wrappery stuff for the app
bundle. Might as well just skip compiling the majority of AppHdr.h
for Objective-C.
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
Diffstat (limited to 'crawl-ref/source/AppHdr.h')
-rw-r--r-- | crawl-ref/source/AppHdr.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/AppHdr.h b/crawl-ref/source/AppHdr.h index e85f216e7d..ecf5584080 100644 --- a/crawl-ref/source/AppHdr.h +++ b/crawl-ref/source/AppHdr.h @@ -16,6 +16,9 @@ #ifndef APPHDR_H #define APPHDR_H +/* Fix annoying precompiled header compile errors caused by unused Objective-C variant. */ +#if !defined(__OBJC__) + #include "platform.h" #include <stdint.h> @@ -407,4 +410,6 @@ inline void UNUSED(const volatile T &) # endif #endif +#endif // !defined __OBJC__ + #endif // APPHDR_H |