Skip to content

Commit df32ea1

Browse files
Merge pull request #751 from Steelskin/fabrice/export-swb-stdout-stderr-symbols
Export swb_stdout and swb_stderr on Windows
2 parents cb41070 + 0dcf052 commit df32ea1

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)