From 758ec705cf1a5fb122115440ffa82c48d36ad9cb Mon Sep 17 00:00:00 2001 From: John Platts Date: Fri, 17 Jan 2025 14:31:31 -0600 Subject: [PATCH] Fix for compiler error with GCC 9 or earlier --- hwy/base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hwy/base.h b/hwy/base.h index 0219503f4c..2706487911 100644 --- a/hwy/base.h +++ b/hwy/base.h @@ -129,7 +129,7 @@ #define HWY_NORETURN __attribute__((noreturn)) #define HWY_LIKELY(expr) __builtin_expect(!!(expr), 1) #define HWY_UNLIKELY(expr) __builtin_expect(!!(expr), 0) -#if HWY_COMPILER_GCC || __has_builtin(__builtin_unreachable) +#if HWY_COMPILER_GCC || HWY_HAS_BUILTIN(__builtin_unreachable) #define HWY_UNREACHABLE __builtin_unreachable() #else #define HWY_UNREACHABLE