From 199deb89850b57ffd2d233de0ecbf84d084157fa Mon Sep 17 00:00:00 2001 From: Konstantin Isakov Date: Sun, 17 Jan 2010 23:23:49 +0300 Subject: [PATCH] Don't make backtrace under win32 -- it seems mingw32 doesn't support that. --- src/termination.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/termination.cc b/src/termination.cc index 574e422e..20d6e4d5 100644 --- a/src/termination.cc +++ b/src/termination.cc @@ -7,7 +7,10 @@ #include #include +#ifndef __WIN32 #include +#endif + #include #include @@ -64,6 +67,8 @@ static void termHandler() message += "terminate() called without active exception\n"; } +#ifndef __WIN32 + message += "\nBacktrace:\n"; const size_t maxDepth = 200; @@ -116,6 +121,8 @@ static void termHandler() message += '\n'; } +#endif + QTemporaryFile file; if ( file.open() )