From c4ce0ec4411f21e0a2f8485588717c59f0b9970c Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 17 Sep 2023 00:09:18 -0700 Subject: Rename noinline to NOINLINE To avoid clashes with compilers that use it as a keyword already --- common/opthelpers.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'common/opthelpers.h') diff --git a/common/opthelpers.h b/common/opthelpers.h index cc606b9e..dc43ccdb 100644 --- a/common/opthelpers.h +++ b/common/opthelpers.h @@ -19,13 +19,13 @@ #ifdef __GNUC__ #define force_inline [[gnu::always_inline]] inline -#define noinline [[gnu::noinline]] +#define NOINLINE [[gnu::noinline]] #elif defined(_MSC_VER) #define force_inline __forceinline -#define noinline __declspec(noinline) +#define NOINLINE __declspec(noinline) #else #define force_inline inline -#define noinline +#define NOINLINE #endif /* Unlike the likely attribute, ASSUME requires the condition to be true or -- cgit v1.2.3