summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2010-02-23 11:56:11 +0100
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2010-02-23 11:56:51 +0100
commitd89237ed642be0c2fa70c864887a308c59ffd2fe (patch)
tree93c722a75d5bb094d9a6088cf91d4a0d883a98e9 /src/main.cpp
parent04fff85c760e36b473556e5e1643f38ea8c6009b (diff)
downloadmana-d89237ed642be0c2fa70c864887a308c59ffd2fe.tar.gz
mana-d89237ed642be0c2fa70c864887a308c59ffd2fe.tar.bz2
mana-d89237ed642be0c2fa70c864887a308c59ffd2fe.tar.xz
mana-d89237ed642be0c2fa70c864887a308c59ffd2fe.zip
The crash handler only works with MinGW
Reviewed-by: Bernd Wachter
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 205ba6eb..2fb9c112 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -31,7 +31,7 @@
#include <iostream>
#include <physfs.h>
-#ifdef WIN32
+#ifdef __MINGW32__
#include <windows.h>
#endif
@@ -188,7 +188,7 @@ static void initXML()
int main(int argc, char *argv[])
{
-#if defined(DEBUG) && defined(WIN32)
+#if defined(DEBUG) && defined(__MINGW32__)
// Load mingw crash handler. Won't fail if dll is not present.
LoadLibrary("exchndl.dll");
#endif