diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/common/attributes.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/common/attributes.h b/include/common/attributes.h index 4ccc421..ba04fcb 100644 --- a/include/common/attributes.h +++ b/include/common/attributes.h @@ -107,6 +107,12 @@ #define NOINLINE __attribute__((noinline)) #endif +#ifdef _MSC_VER +#define ALWAYS_INLINE __forceinline +#else +#define ALWAYS_INLINE __attribute__((always_inline)) inline +#endif + #ifdef __clang__ #define NO_SANITIZE(x) __attribute__((no_sanitize(x))) #else |