Skip to content

Commit

Permalink
Fixed a few compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mgerhardy committed May 6, 2020
1 parent 29e4061 commit d1ce8ba
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions backward.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
#include <streambuf>
#include <string>
#include <vector>
#include <exception>

#if defined(BACKWARD_SYSTEM_LINUX)

Expand Down Expand Up @@ -310,14 +311,14 @@
#include <mutex>
#include <thread>

#include <BaseTsd.h>
#include <basetsd.h>
typedef SSIZE_T ssize_t;

#define NOMINMAX
#include <Windows.h>
#include <windows.h>
#include <winnt.h>

#include <Psapi.h>
#include <psapi.h>
#include <signal.h>

#ifndef __clang__
Expand Down Expand Up @@ -3352,7 +3353,7 @@ template <> class TraceResolverImpl<system_tag::windows_tag> {

char name[256];

memset(&sym, 0, sizeof sym);
memset(&sym, 0, sizeof(sym));
sym.sym.SizeOfStruct = sizeof(SYMBOL_INFO);
sym.sym.MaxNameLen = max_sym_len;

Expand Down Expand Up @@ -4016,8 +4017,8 @@ class SignalHandling {
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);
}
Expand Down

0 comments on commit d1ce8ba

Please sign in to comment.