diff --git a/include/re_types.h b/include/re_types.h index 12c5cfe67..d84a02c8c 100644 --- a/include/re_types.h +++ b/include/re_types.h @@ -81,7 +81,7 @@ typedef SSIZE_T ssize_t; /** Defines a soft breakpoint */ #if (defined(__i386__) || defined(__x86_64__)) #define RE_BREAKPOINT __asm__("int $0x03") -#elif defined(__aarch64__) +#elif defined(__has_builtin) && __has_builtin(__builtin_debugtrap) #define RE_BREAKPOINT __builtin_debugtrap() #else #define RE_BREAKPOINT