From c278d02131d4bf4de083b1d64bfe0927462be654 Mon Sep 17 00:00:00 2001 From: Phil Chang Date: Sat, 3 Jan 2026 00:01:34 +0900 Subject: [PATCH] Use inline instead of __forceinline when compiling with clang-cl on Windows (#420) * Add extern specifier for inline functions inside C source files * Force clang-cl to use inline instead of __forceinline --- include/pocketpy/export.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pocketpy/export.h b/include/pocketpy/export.h index 44104bae..3e959b3b 100644 --- a/include/pocketpy/export.h +++ b/include/pocketpy/export.h @@ -65,7 +65,7 @@ #ifdef NDEBUG #if defined(__GNUC__) #define PK_INLINE __attribute__((always_inline)) inline - #elif defined(_MSC_VER) + #elif defined(_MSC_VER) && !defined(__clang__) #define PK_INLINE __forceinline #else #define PK_INLINE inline