Skip to content

Commit 0dcf052

Browse files
committed
Export swb_stdout and swb_stderr on Windows
This is preventing the Windows toolchain build from succeeding.
1 parent cb41070 commit 0dcf052

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Sources/SWBCLibc/libc.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,16 @@ int swb_clibc_anchor(void) {
2424
extern FILE * const swb_stdout();
2525
extern FILE * const swb_stderr();
2626

27+
#if defined(_WIN32)
28+
__declspec(dllexport)
29+
#endif
2730
FILE * const swb_stdout() {
2831
return stdout;
2932
}
3033

34+
#if defined(_WIN32)
35+
__declspec(dllexport)
36+
#endif
3137
FILE * const swb_stderr() {
3238
return stderr;
3339
}

0 commit comments

Comments
 (0)