Fixed error because intrin.h contains C++ code and can't be included in an extern "C" block.
authorSam Lantinga <slouken@libsdl.org>
Tue, 15 Mar 2011 19:37:38 -0700
changeset 5491 abdd970a65a8
parent 5490 352473883732
child 5493 a8849b1193c3
Fixed error because intrin.h contains C++ code and can't be included in an extern "C" block.
include/SDL_assert.h
--- a/include/SDL_assert.h	Mon Mar 14 23:16:05 2011 -0700
+++ b/include/SDL_assert.h	Tue Mar 15 19:37:38 2011 -0700
@@ -51,7 +51,8 @@
 */
 
 #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" )