diff --git a/stepmania/src/global.cpp b/stepmania/src/global.cpp index ed276f7ac0..38e23df7f7 100644 --- a/stepmania/src/global.cpp +++ b/stepmania/src/global.cpp @@ -1,6 +1,6 @@ #include "global.h" -#ifdef _WINDOWS +#if defined(_WINDOWS) #include "windows.h" void NORETURN sm_crash() { @@ -11,6 +11,13 @@ void NORETURN sm_crash() * to a jmp; that way, this function will appear in backtrace stack traces. */ _asm nop; } +#elif defined(LINUX) || defined(DARWIN) +#include "archutils/Unix/CrashHandler.h" +void NORETURN sm_crash() +{ + ForceCrashHandler( "Internal error" ); + _exit( 1 ); +} #else void NORETURN sm_crash() {