summaryrefslogtreecommitdiff
path: root/stdafx.h
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2005-07-28 21:47:41 +0000
committerbjarni <bjarni@openttd.org>2005-07-28 21:47:41 +0000
commit7e25cd624006cc35ca436925f475c20bca565707 (patch)
tree008f526c71cba19e34f9ada03ca1ee5d87cb15e4 /stdafx.h
parentc8f83b74adbf9582c87bac953ffc0c45d88a180b (diff)
downloadopenttd-7e25cd624006cc35ca436925f475c20bca565707.tar.xz
(svn r2741) -Feature: [OSX] added a window to display asserts on OSX (Tobin)
Diffstat (limited to 'stdafx.h')
-rw-r--r--stdafx.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/stdafx.h b/stdafx.h
index f78bf998c..da8f1e88b 100644
--- a/stdafx.h
+++ b/stdafx.h
@@ -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