From 036b78e29de779e4dd2f3fd0f5a5b7192e82bc9f Mon Sep 17 00:00:00 2001 From: Lars Immisch Date: Tue, 26 Sep 2023 17:42:33 +0200 Subject: [PATCH] Try to fix MSVC --- include/re_types.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/include/re_types.h b/include/re_types.h index d84a02c8c..35d9d5992 100644 --- a/include/re_types.h +++ b/include/re_types.h @@ -81,9 +81,13 @@ typedef SSIZE_T ssize_t; /** Defines a soft breakpoint */ #if (defined(__i386__) || defined(__x86_64__)) #define RE_BREAKPOINT __asm__("int $0x03") -#elif defined(__has_builtin) && __has_builtin(__builtin_debugtrap) +#elif defined(__has_builtin) +#if __has_builtin(__builtin_debugtrap) #define RE_BREAKPOINT __builtin_debugtrap() -#else +#endif +#endif + +#ifndef RE_BREAKPOINT #define RE_BREAKPOINT #endif