Skip to content

Commit 9773daa

Browse files
authored
Don't define swt_getWASIVersion() on non-WASI. (#632)
Don't define `swt_getWASIVersion()` on non-WASI. Oops. :) ### Checklist: - [x] Code and documentation should follow the style of the [Style Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md). - [x] If public symbols are renamed or modified, DocC references should be updated.
1 parent 60784ff commit 9773daa

File tree

1 file changed

+2
-2
lines changed
  • Sources/_TestingInternals/include

1 file changed

+2
-2
lines changed

Sources/_TestingInternals/include/Stubs.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ static int swt_siginfo_t_si_status(const siginfo_t *siginfo) {
121121
}
122122
#endif
123123

124-
//#if defined(__wasi__)
124+
#if defined(__wasi__)
125125
/// Get the version of the C standard library and runtime used by WASI, if
126126
/// available.
127127
///
@@ -137,7 +137,7 @@ static const char *_Nullable swt_getWASIVersion(void) {
137137
return 0;
138138
#endif
139139
}
140-
//#endif
140+
#endif
141141

142142
SWT_ASSUME_NONNULL_END
143143

0 commit comments

Comments
 (0)