From bc3eebc737696986fd68915e4f687ebc17d033d5 Mon Sep 17 00:00:00 2001 From: Ben Anderson Date: Sun, 26 Jun 2005 01:33:33 +0000 Subject: [PATCH] Add GCC asm for MinGW --- stepmania/src/global.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stepmania/src/global.cpp b/stepmania/src/global.cpp index eef7a8082f..eaa2ce20a5 100644 --- a/stepmania/src/global.cpp +++ b/stepmania/src/global.cpp @@ -37,7 +37,11 @@ void NORETURN sm_crash( const char *reason ) #if defined(_WINDOWS) /* Do something after the above, so the call/return isn't optimized to a jmp; that * way, this function will appear in backtrace stack traces. */ +#if defined(_MSC_VER) _asm nop; +#elif defined(__GNUC__) // MinGW or similar + asm("nop"); +#endif #else _exit( 1 ); #endif