From 8a3aeef00d7d7d378be4388e000fbdd40b17e6a7 Mon Sep 17 00:00:00 2001 From: Jino Park Date: Tue, 31 Dec 2024 01:23:59 +0900 Subject: [PATCH] fix msvc build --- include/Peanut/impl/common.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/Peanut/impl/common.h b/include/Peanut/impl/common.h index e561361..b2de6f0 100644 --- a/include/Peanut/impl/common.h +++ b/include/Peanut/impl/common.h @@ -34,7 +34,11 @@ // Dependencies headers +#if defined(_MSC_VER) && !defined(__llvm__) && !defined(__INTEL_COMPILER) +#define INLINE __forceinline +#else #define INLINE __attribute__((always_inline)) inline +#endif namespace Peanut { using Index = unsigned int;