headers: stdio.h: change _IOB_ENTRIES from 20 to 3 on UCRT 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 <dragon-archer@outlook.com> Signed-off-by: LIU Hao <lh_mouse@126.com>
diff --git a/mingw-w64-headers/crt/stdio.h b/mingw-w64-headers/crt/stdio.h index 4e15363..3dc54b5 100644 --- a/mingw-w64-headers/crt/stdio.h +++ b/mingw-w64-headers/crt/stdio.h
@@ -22,7 +22,11 @@ #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_