Skip to content

Commit

Permalink
fix msvc build
Browse files Browse the repository at this point in the history
  • Loading branch information
pjessesco committed Dec 30, 2024
1 parent 223d0d1 commit 8a3aeef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/Peanut/impl/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8a3aeef

Please sign in to comment.