From 57204e78cdaefec0332d01e26a04ac2b5af3e42d Mon Sep 17 00:00:00 2001 From: Woob Date: Thu, 11 Jul 2024 16:55:25 -0700 Subject: [PATCH] Improve support for Clang inside of UPB --- upb/port/def.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upb/port/def.inc b/upb/port/def.inc index 6aa1835f40..8e78d12215 100644 --- a/upb/port/def.inc +++ b/upb/port/def.inc @@ -116,7 +116,7 @@ Error, UINTPTR_MAX is undefined #endif // Macros for function attributes on compilers that support them. -#ifdef __GNUC__ +#if defined(__GNUC__) || defined(__clang__) #define UPB_FORCEINLINE __inline__ __attribute__((always_inline)) static #define UPB_NOINLINE __attribute__((noinline)) #define UPB_NORETURN __attribute__((__noreturn__))