diff options
author | michi_cc <michi_cc@openttd.org> | 2009-10-04 21:08:30 +0000 |
---|---|---|
committer | michi_cc <michi_cc@openttd.org> | 2009-10-04 21:08:30 +0000 |
commit | 5f67762a7f14d901984251da6c41ecdad63a049b (patch) | |
tree | b596067a15d866c491f0a6170fb3ab7f03b4e997 /src/os/macosx/osx_stdafx.h | |
parent | 4f98178fcd110ebfc10fe42e609d27faf7105b73 (diff) | |
download | openttd-5f67762a7f14d901984251da6c41ecdad63a049b.tar.xz |
(svn r17706) -Codechange: [OSX] Rework the crash handling to use the common CrashLog infrastructure.
Diffstat (limited to 'src/os/macosx/osx_stdafx.h')
-rw-r--r-- | src/os/macosx/osx_stdafx.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 <sys/cdefs.h> #include <unistd.h> +/* 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 <debug/debug.h> +#endif + /* __LP64__ only exists in 10.5 and higher */ #if defined(__APPLE__) && !defined(__LP64__) # define __LP64__ 0 |