Skip to content

Commit 3d40ab1

Browse files
committed
Correct DYNLIB_FORCE_INLINE macro for Clang
1 parent 50d751e commit 3d40ab1

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

include/dynlibutils/module.hpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -84,18 +84,18 @@ concept PatternCallback_t = requires(T func, std::size_t index, CMemory match)
8484
#endif
8585

8686
#if defined(__clang__)
87-
# define DYNLIB_FORCE_INLINE [[gnu::always_inline]] [[gnu::gnu_inline]] extern inline
88-
# define DYNLIB_NOINLINE [[gnu::noinline]]
87+
# define DYNLIB_FORCE_INLINE [[gnu::always_inline]] inline
88+
# define DYNLIB_NOINLINE [[gnu::noinline]]
8989
#elif defined(__GNUC__)
90-
# define DYNLIB_FORCE_INLINE [[gnu::always_inline]] inline
91-
# define DYNLIB_NOINLINE [[gnu::noinline]]
90+
# define DYNLIB_FORCE_INLINE [[gnu::always_inline]] inline
91+
# define DYNLIB_NOINLINE [[gnu::noinline]]
9292
#elif defined(_MSC_VER)
93-
# pragma warning(error: 4714)
94-
# define DYNLIB_FORCE_INLINE [[msvc::forceinline]]
95-
# define DYNLIB_NOINLINE __declspec(noinline)
93+
# pragma warning(error: 4714)
94+
# define DYNLIB_FORCE_INLINE [[msvc::forceinline]]
95+
# define DYNLIB_NOINLINE __declspec(noinline)
9696
#else
97-
# define DYNLIB_FORCE_INLINE inline
98-
# define DYNLIB_NOINLINE
97+
# define DYNLIB_FORCE_INLINE inline
98+
# define DYNLIB_NOINLINE
9999
#endif
100100

101101
template<std::size_t INDEX = 0, std::size_t N, std::size_t SIZE = (N - 1) / 2>

0 commit comments

Comments
 (0)