Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fixed error because intrin.h contains C++ code and can't be included …

…in an extern "C" block.
  • Loading branch information
slouken committed Mar 16, 2011
1 parent b5be599 commit 9733e4900ee0f74f2edd3ead4c5682ac383ca7f7
Showing with 2 additions and 1 deletion.
  1. +2 −1 include/SDL_assert.h
@@ -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" )

0 comments on commit 9733e49

Please sign in to comment.