Skip to content

Commit ef397f4

Browse files
Add API guard directives for native build
1 parent 3037a07 commit ef397f4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Sources/JavaScriptEventLoopTestSupport/JavaScriptEventLoopTestSupport.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@ import JavaScriptEventLoop
1919

2020
// This module just expose 'JavaScriptEventLoop.installGlobalExecutor' to C ABI
2121
// See _CJavaScriptEventLoopTestSupport.c for why this is needed
22+
23+
#if compiler(>=5.5)
24+
25+
@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
2226
@_cdecl("swift_javascriptkit_activate_js_executor_impl")
2327
func swift_javascriptkit_activate_js_executor_impl() {
2428
JavaScriptEventLoop.installGlobalExecutor()
2529
}
30+
31+
#endif

0 commit comments

Comments
 (0)