Further Windows fixes.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
15
extern/backward.hpp
vendored
15
extern/backward.hpp
vendored
@@ -310,14 +310,16 @@
|
||||
#include <mutex>
|
||||
#include <thread>
|
||||
|
||||
#include <BaseTsd.h>
|
||||
#include <basetsd.h>
|
||||
typedef SSIZE_T ssize_t;
|
||||
|
||||
#ifndef NOMINMAX
|
||||
#define NOMINMAX
|
||||
#include <Windows.h>
|
||||
#endif
|
||||
#include <windows.h>
|
||||
#include <winnt.h>
|
||||
|
||||
#include <Psapi.h>
|
||||
#include <psapi.h>
|
||||
#include <signal.h>
|
||||
|
||||
#ifndef __clang__
|
||||
@@ -325,9 +327,6 @@ typedef SSIZE_T ssize_t;
|
||||
#define NOINLINE __declspec(noinline)
|
||||
#endif
|
||||
|
||||
#pragma comment(lib, "psapi.lib")
|
||||
#pragma comment(lib, "dbghelp.lib")
|
||||
|
||||
// Comment / packing is from stackoverflow:
|
||||
// https://stackoverflow.com/questions/6205981/windows-c-stack-trace-from-a-running-app/28276227#28276227
|
||||
// Some versions of imagehlp.dll lack the proper packing directives themselves
|
||||
@@ -4016,8 +4015,8 @@ public:
|
||||
signal(SIGABRT, signal_handler);
|
||||
_set_abort_behavior(0, _WRITE_ABORT_MSG | _CALL_REPORTFAULT);
|
||||
|
||||
set_terminate(&terminator);
|
||||
set_unexpected(&terminator);
|
||||
std::set_terminate(&terminator);
|
||||
std::set_unexpected(&terminator);
|
||||
_set_purecall_handler(&terminator);
|
||||
_set_invalid_parameter_handler(&invalid_parameter_handler);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user