diff options
author | Bernd Wachter <bwachter-tmw@lart.info> | 2010-01-28 12:49:16 +0100 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2010-01-28 09:40:33 -0700 |
commit | 83270e09c1ec17f610df0645810eddffa0b8ccdf (patch) | |
tree | c01b3e8d7835a50daeefe8733e9691f08d8f1e2c /src/main.cpp | |
parent | 518ac7f5279139731aeaaf5ad742a9d45ff6e0d5 (diff) | |
download | mana-83270e09c1ec17f610df0645810eddffa0b8ccdf.tar.gz mana-83270e09c1ec17f610df0645810eddffa0b8ccdf.tar.bz2 mana-83270e09c1ec17f610df0645810eddffa0b8ccdf.tar.xz mana-83270e09c1ec17f610df0645810eddffa0b8ccdf.zip |
Add support for MingW crash handler; define DEBUG for debug builds
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index af1057a7..6454b123 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -722,6 +722,10 @@ static void initXML() /** Main */ int main(int argc, char *argv[]) { +#if defined(DEBUG) && defined(WIN32) + // load mingw crash handler. Won't fail if dll is not present. + LoadLibrary("exchndl.dll"); +#endif // Parse command line options Options options; parseOptions(argc, argv, options); |