From 5f67762a7f14d901984251da6c41ecdad63a049b Mon Sep 17 00:00:00 2001 From: michi_cc Date: Sun, 4 Oct 2009 21:08:30 +0000 Subject: (svn r17706) -Codechange: [OSX] Rework the crash handling to use the common CrashLog infrastructure. --- src/os/macosx/osx_stdafx.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/os/macosx/osx_stdafx.h') diff --git a/src/os/macosx/osx_stdafx.h b/src/os/macosx/osx_stdafx.h index 00b9ddb19..254bf3851 100644 --- a/src/os/macosx/osx_stdafx.h +++ b/src/os/macosx/osx_stdafx.h @@ -20,6 +20,12 @@ #include #include +/* Some gcc versions include assert.h via this header. As this would interfere + * with our own assert redefinition, include this header first. */ +#if defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)) +# include +#endif + /* __LP64__ only exists in 10.5 and higher */ #if defined(__APPLE__) && !defined(__LP64__) # define __LP64__ 0 -- cgit v1.2.3-70-g09d2