Skip to content

Commit a2b1f99

Browse files
committed
Fix build with Clang on Windows
1 parent 2aceb7a commit a2b1f99

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/xsimd/config/xsimd_inline.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@
1212
#ifndef XSIMD_INLINE_HPP
1313
#define XSIMD_INLINE_HPP
1414

15-
#if defined(__GNUC__)
15+
#if defined __has_attribute
16+
#if __has_attribute(always_inline)
1617
#define XSIMD_INLINE inline __attribute__((always_inline))
18+
#endif
1719
#elif defined(_MSC_VER)
1820
#define XSIMD_INLINE inline __forceinline
1921
#else

0 commit comments

Comments
 (0)