@@ -10895,6 +10895,7 @@ pub fn stdin() *FILE {
10895
10895
.freebsd , .dragonfly , .macos , .ios , .tvos , .watchos , .visionos = > private .__stdinp ,
10896
10896
.netbsd , .openbsd = > & private .__sF [0 ],
10897
10897
.solaris , .illumos = > & private .__iob [0 ],
10898
+ .windows = > private .__acrt_iob_func (0 ),
10898
10899
else = > @compileError ("stdio streams unsupported on this platform" ),
10899
10900
};
10900
10901
}
@@ -10905,6 +10906,7 @@ pub fn stdout() *FILE {
10905
10906
.freebsd , .dragonfly , .macos , .ios , .tvos , .watchos , .visionos = > private .__stdoutp ,
10906
10907
.netbsd , .openbsd = > & private .__sF [1 ],
10907
10908
.solaris , .illumos = > & private .__iob [1 ],
10909
+ .windows = > private .__acrt_iob_func (1 ),
10908
10910
else = > @compileError ("stdio streams unsupported on this platform" ),
10909
10911
};
10910
10912
}
@@ -10915,6 +10917,7 @@ pub fn stderr() *FILE {
10915
10917
.freebsd , .dragonfly , .macos , .ios , .tvos , .watchos , .visionos = > private .__stderrp ,
10916
10918
.netbsd , .openbsd = > & private .__sF [2 ],
10917
10919
.solaris , .illumos = > & private .__iob [2 ],
10920
+ .windows = > private .__acrt_iob_func (2 ),
10918
10921
else = > @compileError ("stdio streams unsupported on this platform" ),
10919
10922
};
10920
10923
}
@@ -11442,6 +11445,9 @@ const private = struct {
11442
11445
else = > void ,
11443
11446
};
11444
11447
11448
+ // Windows stdio streams
11449
+ extern "c" fn __acrt_iob_func (index : c_uint ) * FILE ;
11450
+
11445
11451
// Don't forget to add another clown when an OS picks yet another unique
11446
11452
// symbol name for errno location!
11447
11453
// 🤡🤡🤡🤡🤡🤡
0 commit comments