mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-30 17: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 <cxxabi.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
#ifndef __WIN32
|
||||||
#include <execinfo.h>
|
#include <execinfo.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
@ -64,6 +67,8 @@ static void termHandler()
|
||||||
message += "terminate() called without active exception\n";
|
message += "terminate() called without active exception\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef __WIN32
|
||||||
|
|
||||||
message += "\nBacktrace:\n";
|
message += "\nBacktrace:\n";
|
||||||
|
|
||||||
const size_t maxDepth = 200;
|
const size_t maxDepth = 200;
|
||||||
|
@ -116,6 +121,8 @@ static void termHandler()
|
||||||
message += '\n';
|
message += '\n';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
QTemporaryFile file;
|
QTemporaryFile file;
|
||||||
|
|
||||||
if ( file.open() )
|
if ( file.open() )
|
||||||
|
|
Loading…
Reference in a new issue