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"