From 0dcf05278fdfd5c5a98a4ca3fc9b340b86d08f24 Mon Sep 17 00:00:00 2001 From: Fabrice de Gans Date: Thu, 28 Aug 2025 09:35:05 -0700 Subject: [PATCH] Export swb_stdout and swb_stderr on Windows This is preventing the Windows toolchain build from succeeding. --- Sources/SWBCLibc/libc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Sources/SWBCLibc/libc.c b/Sources/SWBCLibc/libc.c index 8ffe85f4..3fae9fa9 100644 --- a/Sources/SWBCLibc/libc.c +++ b/Sources/SWBCLibc/libc.c @@ -24,10 +24,16 @@ int swb_clibc_anchor(void) { extern FILE * const swb_stdout(); extern FILE * const swb_stderr(); +#if defined(_WIN32) +__declspec(dllexport) +#endif FILE * const swb_stdout() { return stdout; } +#if defined(_WIN32) +__declspec(dllexport) +#endif FILE * const swb_stderr() { return stderr; }