Browse Source

Don't call strsignal() on Windows since it's not defined.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
a1e7f1f4b9
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      adapters/standalone.cpp

+ 3
- 1
adapters/standalone.cpp View File

@@ -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();


Loading…
Cancel
Save