From 8065202a812fbc79300e6242a49544b583f49fee Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Mon, 3 Oct 2011 15:11:33 +0000 Subject: [PATCH] [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 --- reactos/include/crt/mingw32/intrin_x86.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/reactos/include/crt/mingw32/intrin_x86.h b/reactos/include/crt/mingw32/intrin_x86.h index 5da45f83435..fa6e86ad753 100644 --- a/reactos/include/crt/mingw32/intrin_x86.h +++ b/reactos/include/crt/mingw32/intrin_x86.h @@ -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) {