mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-09-09 15:05:40 +00:00
pre-mingw-w64 MinGW toolchains don't ship with a intrin.h header
This commit is contained in:
committed by
Anonymous Maarten
parent
8f8ed757bc
commit
f9abf9e843
@@ -131,7 +131,12 @@ extern "C" {
|
||||
extern void __cdecl __debugbreak(void);
|
||||
#define SDL_TriggerBreakpoint() __debugbreak()
|
||||
#elif defined(__MINGW32__)
|
||||
#include <_mingw.h>
|
||||
#ifdef __MINGW64_VERSION_MAJOR
|
||||
#include <intrin.h>
|
||||
#else
|
||||
extern void __cdecl __debugbreak(void);
|
||||
#endif
|
||||
#define SDL_TriggerBreakpoint() __debugbreak()
|
||||
#elif defined(_MSC_VER) && defined(_M_IX86)
|
||||
#define SDL_TriggerBreakpoint() { _asm { int 0x03 } }
|
||||
|
||||
Reference in New Issue
Block a user