From 0fba3e2df87fefd89ba17cc355fac643c3e8dc49 Mon Sep 17 00:00:00 2001 From: Steven Noonan Date: Tue, 29 Sep 2009 21:58:37 -0700 Subject: AppHdr.h: fix "already defined" macro warnings on OSX and FREEBSD If you specify OSX as a macro, it shouldn't cause the compiler to throw a warning. Signed-off-by: Steven Noonan --- crawl-ref/source/AppHdr.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crawl-ref/source/AppHdr.h') diff --git a/crawl-ref/source/AppHdr.h b/crawl-ref/source/AppHdr.h index 6d9029ee8e..eb56602d3e 100644 --- a/crawl-ref/source/AppHdr.h +++ b/crawl-ref/source/AppHdr.h @@ -25,10 +25,14 @@ // For a list of predefined macros, see // http://predef.sourceforge.net/ #if defined(__MACH__) + #ifndef OSX #define OSX + #endif #endif #if defined(__FreeBSD__) + #ifndef FREEBSD #define FREEBSD + #endif #endif // The maximum memory that the user-script Lua interpreter can -- cgit v1.2.3-54-g00ecf