Skip to content

Commit

Permalink
_mingw.h.in: Use __has_builtin in widl-friendly way.
Browse files Browse the repository at this point in the history
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
  • Loading branch information
cjacek committed Dec 18, 2017
1 parent abd02b3 commit 060cd67
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions mingw-w64-headers/crt/_mingw.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 060cd67

Please sign in to comment.