Fixed error because intrin.h contains C++ code and can't be included in an extern "C" block.
This commit is contained in:
parent
bbf8ed88c2
commit
5f721ad51f
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue