Commit 5f721ad5 authored by Sam Lantinga's avatar Sam Lantinga

Fixed error because intrin.h contains C++ code and can't be included in an extern "C" block.

parent bbf8ed88
......@@ -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" )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment