Fixed Windows issues.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-08-20 13:21:39 +02:00
parent 8fecd2079a
commit 675407d7f5
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
2 changed files with 4 additions and 2 deletions

View File

@ -9,6 +9,6 @@ static ArbUt::SignalHandling sh;
export void Arbutils_C_SetSignalCallback(void (*callback)(const char*)) { sh.SetCallback(callback); } export void Arbutils_C_SetSignalCallback(void (*callback)(const char*)) { sh.SetCallback(callback); }
export void Arbutils_C_RaiseSignal() { raise(SIGSEGV); } export void Arbutils_C_RaiseSignal() { raise(SIGSEGV); }
#else #else
export void Arbutils_C_SetSignalCallback(void (*callback)(const char*)) { } export void Arbutils_C_SetSignalCallback(void (*)(const char*)) { }
export void Arbutils_C_RaiseSignal() { raise(SIGSEGV); } export void Arbutils_C_RaiseSignal() { raise(SIGSEGV); }
#endif #endif

View File

@ -1,3 +1,5 @@
#include "SignalHandling.hpp" #include "SignalHandling.hpp"
void (*ArbUt::SignalHandling::_callback)(const char*) = nullptr; #if !WINDOWS
void (*ArbUt::SignalHandling::_callback)(const char*) = nullptr;
#endif