From a2b87dfaa0ae3e6d953b2e757ff37dfd2a657372 Mon Sep 17 00:00:00 2001 From: Protobuf Team Bot Date: Fri, 22 Nov 2024 17:50:26 +0000 Subject: [PATCH] Auto-generate files after PR #17433 --- php/ext/google/protobuf/php-upb.c | 2 +- php/ext/google/protobuf/php-upb.h | 2 +- ruby/ext/google/protobuf_c/ruby-upb.c | 2 +- ruby/ext/google/protobuf_c/ruby-upb.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/php/ext/google/protobuf/php-upb.c b/php/ext/google/protobuf/php-upb.c index a9301d28cea88..b96d64f19b8d0 100644 --- a/php/ext/google/protobuf/php-upb.c +++ b/php/ext/google/protobuf/php-upb.c @@ -128,7 +128,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__)) diff --git a/php/ext/google/protobuf/php-upb.h b/php/ext/google/protobuf/php-upb.h index c101c6020864a..aad02a6e30c0c 100644 --- a/php/ext/google/protobuf/php-upb.h +++ b/php/ext/google/protobuf/php-upb.h @@ -127,7 +127,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__)) diff --git a/ruby/ext/google/protobuf_c/ruby-upb.c b/ruby/ext/google/protobuf_c/ruby-upb.c index 35c858182e4e7..6bae049a73503 100644 --- a/ruby/ext/google/protobuf_c/ruby-upb.c +++ b/ruby/ext/google/protobuf_c/ruby-upb.c @@ -128,7 +128,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__)) diff --git a/ruby/ext/google/protobuf_c/ruby-upb.h b/ruby/ext/google/protobuf_c/ruby-upb.h index d8ccd46d3f8b8..d0d4b25a6b50e 100755 --- a/ruby/ext/google/protobuf_c/ruby-upb.h +++ b/ruby/ext/google/protobuf_c/ruby-upb.h @@ -129,7 +129,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__))