From e1932f4cb4cb7703abc35b1db2d86225644e6d48 Mon Sep 17 00:00:00 2001 From: Jonathan Grynspan Date: Wed, 21 Aug 2024 18:13:02 -0400 Subject: [PATCH] Don't define `swt_getWASIVersion()` on non-WASI. Don't define `swt_getWASIVersion()` on non-WASI. Oops. :) --- Sources/_TestingInternals/include/Stubs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/_TestingInternals/include/Stubs.h b/Sources/_TestingInternals/include/Stubs.h index 6102e539f..95e9c5913 100644 --- a/Sources/_TestingInternals/include/Stubs.h +++ b/Sources/_TestingInternals/include/Stubs.h @@ -121,7 +121,7 @@ static int swt_siginfo_t_si_status(const siginfo_t *siginfo) { } #endif -//#if defined(__wasi__) +#if defined(__wasi__) /// Get the version of the C standard library and runtime used by WASI, if /// available. /// @@ -137,7 +137,7 @@ static const char *_Nullable swt_getWASIVersion(void) { return 0; #endif } -//#endif +#endif SWT_ASSUME_NONNULL_END