Skip to content

Commit

Permalink
Guard use of always_inline by has_attribute for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kateinoigakukun committed Sep 11, 2024
1 parent 46347ef commit e9e1df5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/_CWasmKit/include/InlineCode.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#if WASMKIT_USE_DIRECT_THREADED_CODE
// Inline instruction implementation written in Swift side into C handler
// function. Used in DirectThreadedCode.inc.
# if defined(__clang__) && (__clang_major__ >= 16)
# if defined(__clang__) && (__clang_major__ >= 16) && __has_attribute(always_inline)
// `always_inline` at statement level is available since Clang 16.
# define INLINE_CALL [[clang::always_inline]]
# else
Expand Down

0 comments on commit e9e1df5

Please sign in to comment.