Browse Source

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
Phil Chang 2 months ago
parent
commit
c278d02131
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/pocketpy/export.h

+ 1 - 1
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