This effectively reverts f2b70c99. Since clang 3.4, __debugbreak is limited to -fms-extensions and thus not available by default when targeting mingw.
Signed-off-by: Martin Storsjö <mar...@martin.st> --- If you really want to retain support for clang < 3.4, I could try to add ifdefs to detect it. That would probably be something like this: if !defined(__clang__) || (__clang_major__ > 3 || __clang_major__ == 3 && __clang_minor__ >= 4) Clang doesn't set any define when -fms-extensions is set though, so we can't detect that. --- mingw-w64-headers/crt/_mingw.h.in | 2 -- 1 file changed, 2 deletions(-) diff --git a/mingw-w64-headers/crt/_mingw.h.in b/mingw-w64-headers/crt/_mingw.h.in index 99373b8..b79a5b6 100644 --- a/mingw-w64-headers/crt/_mingw.h.in +++ b/mingw-w64-headers/crt/_mingw.h.in @@ -535,14 +535,12 @@ extern "C" { #endif #ifdef __MINGW_INTRIN_INLINE -#if !defined (__clang__) void __cdecl __debugbreak(void); __MINGW_INTRIN_INLINE void __cdecl __debugbreak(void) { __asm__ __volatile__("int {$}3":); } #endif -#endif /* mingw-w64 specific functions: */ const char *__mingw_get_crt_info (void); -- 2.7.4 ------------------------------------------------------------------------------ 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 Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public