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
This commit is contained in:
Phil Chang 2026-01-03 00:01:34 +09:00 committed by GitHub
parent bbddcc7ef7
commit c278d02131
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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