@@ -10858,6 +10858,7 @@ pub fn stdin() *FILE {
10858
10858
.freebsd , .dragonfly , .macos , .ios , .tvos , .watchos , .visionos = > private .__stdinp ,
10859
10859
.netbsd , .openbsd = > & private .__sF [0 ],
10860
10860
.solaris , .illumos = > & private .__iob [0 ],
10861
+ .windows = > private .__acrt_iob_func (0 ),
10861
10862
else = > @compileError ("stdio streams unsupported on this platform" ),
10862
10863
};
10863
10864
}
@@ -10868,6 +10869,7 @@ pub fn stdout() *FILE {
10868
10869
.freebsd , .dragonfly , .macos , .ios , .tvos , .watchos , .visionos = > private .__stdoutp ,
10869
10870
.netbsd , .openbsd = > & private .__sF [1 ],
10870
10871
.solaris , .illumos = > & private .__iob [1 ],
10872
+ .windows = > private .__acrt_iob_func (1 ),
10871
10873
else = > @compileError ("stdio streams unsupported on this platform" ),
10872
10874
};
10873
10875
}
@@ -10878,6 +10880,7 @@ pub fn stderr() *FILE {
10878
10880
.freebsd , .dragonfly , .macos , .ios , .tvos , .watchos , .visionos = > private .__stderrp ,
10879
10881
.netbsd , .openbsd = > & private .__sF [2 ],
10880
10882
.solaris , .illumos = > & private .__iob [2 ],
10883
+ .windows = > private .__acrt_iob_func (2 ),
10881
10884
else = > @compileError ("stdio streams unsupported on this platform" ),
10882
10885
};
10883
10886
}
@@ -11405,6 +11408,9 @@ const private = struct {
11405
11408
else = > void ,
11406
11409
};
11407
11410
11411
+ // Windows stdio streams
11412
+ extern "c" fn __acrt_iob_func (index : c_uint ) * FILE ;
11413
+
11408
11414
// Don't forget to add another clown when an OS picks yet another unique
11409
11415
// symbol name for errno location!
11410
11416
// 🤡🤡🤡🤡🤡🤡
0 commit comments