Improve support for Clang inside of UPB

pull/17433/head
Woob 5 months ago
parent ccb23625f8
commit 57204e78cd
  1. 2
      upb/port/def.inc

@ -116,7 +116,7 @@ Error, UINTPTR_MAX is undefined
#endif #endif
// Macros for function attributes on compilers that support them. // 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_FORCEINLINE __inline__ __attribute__((always_inline)) static
#define UPB_NOINLINE __attribute__((noinline)) #define UPB_NOINLINE __attribute__((noinline))
#define UPB_NORETURN __attribute__((__noreturn__)) #define UPB_NORETURN __attribute__((__noreturn__))

Loading…
Cancel
Save