[HEADERS/CRT]

* Work around an issue with clang and __debugbreak(). They mark __debugbreak as built-in (so we can't use ours) but it's not supported yet (so if we use nothing we get an error).

svn path=/trunk/; revision=53958
This commit is contained in:
Amine Khaldi 2011-10-03 15:11:33 +00:00
parent b1ed2b25fe
commit 8065202a81

View file

@ -1204,10 +1204,14 @@ __INTRIN_INLINE uintptr_t __readeflags(void)
}
/*** Interrupts ***/
#ifdef __clang__
#define __debugbreak() __asm__("int $3")
#else
__INTRIN_INLINE void __debugbreak(void)
{
__asm__("int $3");
}
#endif
__INTRIN_INLINE void __int2c(void)
{