auxiliary/os,auxiliary/util: Fix the `‘noreturn’ function does return` warning.
[mesa.git] / src / gallium / auxiliary / os / os_misc.h
index 48522dac4d72795c903012945ae68d198b67bbed..582931fe96a49034a0f11c76679114441cc81e8a 100644 (file)
@@ -66,8 +66,8 @@ extern "C" {
 /*
  * Abort the program.
  */
-#if defined(DEBUG) || defined(PIPE_SUBSYSTEM_WINDOWS_DISPLAY) || defined(PIPE_SUBSYSTEM_WINDOWS_MINIPORT)
-#  define os_abort() os_break()
+#if defined(DEBUG)
+#  define os_abort() do { os_break(); abort(); } while(0)
 #else
 #  define os_abort() abort()
 #endif