From a1e7f1f4b90f618a01f990de47fa986be283d3bd Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Wed, 17 Nov 2021 12:49:12 -0500 Subject: [PATCH] Don't call strsignal() on Windows since it's not defined. --- adapters/standalone.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/adapters/standalone.cpp b/adapters/standalone.cpp index 035dcda5..12cbfeb3 100644 --- a/adapters/standalone.cpp +++ b/adapters/standalone.cpp @@ -50,8 +50,10 @@ static void fatalSignalHandler(int sig) { #if defined ARCH_LIN const char* sigNameC = strsignal(sig); -#else +#elif defined ARCH_MAC const char* sigNameC = sys_siglist[sig]; +#else + const char* sigNameC = ""; #endif std::string sigName = "SIG" + string::uppercase(sigNameC); std::string stackTrace = system::getStackTrace();