mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
Don't make backtrace under win32 -- it seems mingw32 doesn't support that.
This commit is contained in:
parent
9c3d8de794
commit
199deb8985
|
@ -7,7 +7,10 @@
|
|||
#include <cxxabi.h>
|
||||
#include <string>
|
||||
|
||||
#ifndef __WIN32
|
||||
#include <execinfo.h>
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
|
@ -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() )
|
||||
|
|
Loading…
Reference in a new issue