diff --git a/src/SignalHandling.hpp b/src/SignalHandling.hpp index c78faae..ca1658b 100644 --- a/src/SignalHandling.hpp +++ b/src/SignalHandling.hpp @@ -1,9 +1,12 @@ #ifndef ARBUTILS_SIGNALHANDLING_HPP #define ARBUTILS_SIGNALHANDLING_HPP +#if !WINDOWS #if PRETTYTRACES #define BACKWARD_HAS_DW 1 #endif #include "../extern/backward.hpp" +#endif + #include "Exception.hpp" // Sourced from https://github.com/bombela/backward-cpp/blob/master/backward.hpp#L3849 @@ -38,7 +41,7 @@ namespace ArbUt { SignalHandling(void(callback)(const char*) = nullptr, const std::vector& posix_signals = make_default_signals()) - : _loaded(false){ + : _loaded(false) { bool success = true; const size_t stack_size = 1024 * 1024 * 8; @@ -128,7 +131,7 @@ namespace ArbUt { private: backward::details::handle _stack_content; bool _loaded; - static void(*_callback)(const char*); + static void (*_callback)(const char*); #ifdef __GNUC__ __attribute__((noreturn)) @@ -328,7 +331,7 @@ namespace ArbUt { #endif // BACKWARD_SYSTEM_UNKNOWN - void SetSignalCallback(void(*callback)(const char*)); + void SetSignalCallback(void (*callback)(const char*)); } #endif // ARBUTILS_SIGNALHANDLING_HPP