From 16b083d9277e30cbada696f92acdf060a6db52dc Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Tue, 18 Aug 2020 18:50:03 +0200 Subject: [PATCH] Tweaks to make Windows happy again hopefully --- CInterface/Core.cpp | 2 -- src/SignalHandling.hpp | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/CInterface/Core.cpp b/CInterface/Core.cpp index 6d576e4..1d3e233 100644 --- a/CInterface/Core.cpp +++ b/CInterface/Core.cpp @@ -4,8 +4,6 @@ std::string ExceptionHandler::_ArbutilsLastException = ""; export const char* Arbutils_C_GetLastException() { return ExceptionHandler::GetLastException(); } -#if !WINDOWS static ArbUt::SignalHandling sh; export void Arbutils_C_SetSignalCallback(void (*callback)(const char*)) { sh = ArbUt::SignalHandling(callback); } export void Arbutils_C_RaiseSignal() { raise(SIGSEGV); } -#endif \ No newline at end of file diff --git a/src/SignalHandling.hpp b/src/SignalHandling.hpp index ca1658b..c0b7915 100644 --- a/src/SignalHandling.hpp +++ b/src/SignalHandling.hpp @@ -1,11 +1,9 @@ #ifndef ARBUTILS_SIGNALHANDLING_HPP #define ARBUTILS_SIGNALHANDLING_HPP -#if !WINDOWS -#if PRETTYTRACES +#if PRETTYTRACES && !WINDOWS #define BACKWARD_HAS_DW 1 #endif #include "../extern/backward.hpp" -#endif #include "Exception.hpp"