This follows UCRT headers. Cannot be changed to 3 on non-UCRT because it
seemes to break the compiler, see
https://github.com/dragon-archer/mingw-w64/actions/runs/31932489074/job/95132994647

Signed-off-by: Zhongteng Gui <[email protected]>
---
 mingw-w64-headers/crt/stdio.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/mingw-w64-headers/crt/stdio.h b/mingw-w64-headers/crt/stdio.h
index 33fd47ad1..ef3fe0300 100644
--- a/mingw-w64-headers/crt/stdio.h
+++ b/mingw-w64-headers/crt/stdio.h
@@ -22,7 +22,11 @@ _CRT_BEGIN_C_HEADER
 #define BUFSIZ 512
 #define _NFILE _NSTREAM_
 #define _NSTREAM_ 512
+#ifdef _UCRT
+#define _IOB_ENTRIES 3
+#else
 #define _IOB_ENTRIES 20
+#endif
 #define EOF (-1)
 
 #ifdef _POSIX_
-- 
2.55.0.windows.4



_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to