diff options
author | bjarni <bjarni@openttd.org> | 2005-07-28 21:47:41 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2005-07-28 21:47:41 +0000 |
commit | a2a5593fcc9eb8f373a0515a23ca2ac61eaa3b78 (patch) | |
tree | 008f526c71cba19e34f9ada03ca1ee5d87cb15e4 /stdafx.h | |
parent | 8677020a8bfe4a8b08f00284a30e72e8db57b9cb (diff) | |
download | openttd-a2a5593fcc9eb8f373a0515a23ca2ac61eaa3b78.tar.xz |
(svn r2741) -Feature: [OSX] added a window to display asserts on OSX (Tobin)
Diffstat (limited to 'stdafx.h')
-rw-r--r-- | stdafx.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -20,10 +20,16 @@ #endif #include <stdio.h> -#include <assert.h> #include <string.h> #include <stdlib.h> +// MacOS X will use an NSAlert to display failed assertaions since they're lost unless running from a terminal +#if !defined(__APPLE__) +#include <assert.h> +#else +#include "os/macosx/macos.h" +#endif + #if defined(UNIX) || defined(__MINGW32__) # include <sys/types.h> #endif |