From f6bae251bde9f194f26835117e04f10e26f30463 Mon Sep 17 00:00:00 2001 From: David Reid Date: Wed, 20 Aug 2025 16:09:44 +1000 Subject: [PATCH] verblib: Try fixing a compilation error on macOS. --- extras/nodes/ma_reverb_node/verblib.h | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/extras/nodes/ma_reverb_node/verblib.h b/extras/nodes/ma_reverb_node/verblib.h index 12603092..459b102d 100644 --- a/extras/nodes/ma_reverb_node/verblib.h +++ b/extras/nodes/ma_reverb_node/verblib.h @@ -248,13 +248,23 @@ extern "C" { #include #ifdef _MSC_VER -#define VERBLIB_INLINE __forceinline + #define VERBLIB_INLINE __forceinline +#elif defined(__GNUC__) + #if defined(__STRICT_ANSI__) + #define VERBLIB_GNUC_INLINE_HINT __inline__ + #else + #define VERBLIB_GNUC_INLINE_HINT inline + #endif + + #if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2)) || defined(__clang__) + #define VERBLIB_INLINE VERBLIB_GNUC_INLINE_HINT __attribute__((always_inline)) + #else + #define VERBLIB_INLINE VERBLIB_GNUC_INLINE_HINT + #endif +#elif defined(__WATCOMC__) + #define VERBLIB_INLINE __inline #else -#ifdef __GNUC__ -#define VERBLIB_INLINE inline __attribute__((always_inline)) -#else -#define VERBLIB_INLINE inline -#endif + #define VERBLIB_INLINE #endif #define verblib_max(x, y) (((x) > (y)) ? (x) : (y))