This is a workaround, widl can't handle parametrized macro as #if
expression. Ideally, widl preprocessor should support this syntax.
Signed-off-by: Jacek Caban <[email protected]>
---
mingw-w64-headers/crt/_mingw.h.in | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/mingw-w64-headers/crt/_mingw.h.in b/mingw-w64-headers/crt/_mingw.h.in
index e34ba83d..4c40da0c 100644
--- a/mingw-w64-headers/crt/_mingw.h.in
+++ b/mingw-w64-headers/crt/_mingw.h.in
@@ -542,12 +542,13 @@ extern "C" {
#endif
-#ifndef __has_builtin
- #define __has_builtin(x) 0
-#endif
-
#ifdef __MINGW_INTRIN_INLINE
-#if !defined (__clang__) || !__has_builtin(__debugbreak)
+#ifdef __has_builtin
+#define __MINGW_DEBUGBREAK_IMPL !__has_builtin(__debugbreak)
+#else
+#define __MINGW_DEBUGBREAK_IMPL 1
+#endif
+#if __MINGW_DEBUGBREAK_IMPL == 1
void __cdecl __debugbreak(void);
__MINGW_INTRIN_INLINE void __cdecl __debugbreak(void)
{
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public