Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed error because intrin.h contains C++ code and can't be included …
Browse files Browse the repository at this point in the history
…in an extern "C" block.
  • Loading branch information
slouken committed Mar 16, 2011
1 parent b5be599 commit 9733e49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/SDL_assert.h
Expand Up @@ -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" )
Expand Down

0 comments on commit 9733e49

Please sign in to comment.