Skip to content

Commit da77680

Browse files
fix: missing inline keyword in gcc compiler
1 parent 275c895 commit da77680

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

wheel_lexer/include/wheel_lexer/aliases.hxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
#define WHEEL_STR_UNLIKELY(str1, str2) str1 != str2
99

1010
#if defined(__clang__) || defined(__GNUC__)
11-
#define WHEEL_ALWAYS_INLINE __attribute__((always_inline))
12-
#define WHEEL_COMPTIME_NODISCARD_INLINE [[nodiscard]] __attribute__((always_inline)) constexpr
13-
#define WHEEL_ALWAYS_INLINE_NODISCARD [[nodiscard]] __attribute__((always_inline))
11+
#define WHEEL_ALWAYS_INLINE __attribute__((always_inline)) inline
12+
#define WHEEL_COMPTIME_NODISCARD_INLINE [[nodiscard]] __attribute__((always_inline)) inline constexpr
13+
#define WHEEL_ALWAYS_INLINE_NODISCARD [[nodiscard]] __attribute__((always_inline)) inline
1414

1515
#elif defined(_MSC_VER)
1616
#define WHEEL_ALWAYS_INLINE __forceinline

0 commit comments

Comments
 (0)