mirror of
https://github.com/yawut/SDL.git
synced 2026-04-25 07:52:57 -05:00
Fixed error because intrin.h contains C++ code and can't be included in an extern "C" block.
This commit is contained in:
parent
99c49c23e4
commit
a99d79de70
|
|
@ -51,7 +51,8 @@ assert can have unique static variables associated with it.
|
|||
*/
|
||||
|
||||
#if defined(_MSC_VER) && !defined(_WIN32_WCE)
|
||||
#include <intrin.h>
|
||||
/* Don't include intrin.h here because it contains C++ code */
|
||||
extern void __cdecl __debugbreak(void);
|
||||
#define SDL_TriggerBreakpoint() __debugbreak()
|
||||
#elif (defined(__GNUC__) && ((__i386__) || (__x86_64__)))
|
||||
#define SDL_TriggerBreakpoint() __asm__ __volatile__ ( "int $3\n\t" )
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user