Author: akhaldi
Date: Mon Oct 3 15:11:33 2011
New Revision: 53958
URL: http://svn.reactos.org/svn/reactos?rev=53958&view=rev
Log:
[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).
Modified:
trunk/reactos/include/crt/mingw32/intrin_x86.h
Modified: trunk/reactos/include/crt/mingw32/intrin_x86.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/crt/mingw32/intrin…
==============================================================================
--- trunk/reactos/include/crt/mingw32/intrin_x86.h [iso-8859-1] (original)
+++ trunk/reactos/include/crt/mingw32/intrin_x86.h [iso-8859-1] Mon Oct 3 15:11:33 2011
@@ -1204,10 +1204,14 @@
}
/*** Interrupts ***/
+#ifdef __clang__
+#define __debugbreak() __asm__("int $3")
+#else
__INTRIN_INLINE void __debugbreak(void)
{
__asm__("int $3");
}
+#endif
__INTRIN_INLINE void __int2c(void)
{