From d5c68ad7827a0278da8611c0af3d15940d17b278 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 17 Jan 2011 13:52:40 -0800 Subject: [PATCH] Use the portable intrinsic --- include/SDL_assert.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/SDL_assert.h b/include/SDL_assert.h index 6c72fa18e..d822303d6 100644 --- a/include/SDL_assert.h +++ b/include/SDL_assert.h @@ -50,8 +50,9 @@ on the assertion line and not in some random guts of SDL, and so each assert can have unique static variables associated with it. */ -#if (defined(_MSC_VER) && ((_M_IX86) || (_M_X64))) - #define SDL_TriggerBreakpoint() __asm { int 3 } +#if defined(_MSC_VER) +#include + #define SDL_TriggerBreakpoint() __debugbreak() #elif (defined(__GNUC__) && ((__i386__) || (__x86_64__))) #define SDL_TriggerBreakpoint() __asm__ __volatile__ ( "int $3\n\t" ) #elif defined(HAVE_SIGNAL_H)