From aec7cc1559f477669cd18dcdfbcff13064984d6d Mon Sep 17 00:00:00 2001 From: lizy <821610729@qq.com> Date: Tue, 27 Aug 2024 18:40:59 +0800 Subject: [PATCH] Don't inline when compiling with Clang #44 --- include/sigar_private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/sigar_private.h b/include/sigar_private.h index 11e62cd87..6c4e61fee 100644 --- a/include/sigar_private.h +++ b/include/sigar_private.h @@ -73,7 +73,7 @@ #if defined(WIN32) # define SIGAR_INLINE __inline -#elif defined(__GNUC__) +#elif defined(__GNUC__) && !defined(__clang__) # define SIGAR_INLINE inline #else # define SIGAR_INLINE