Signed-off-by: Martin Storsjö <[email protected]>
---
However, in public UCRT headers, this whole struct is opaque, so
just not exposing it could also be an option...
---
 mingw-w64-headers/crt/stdio.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/mingw-w64-headers/crt/stdio.h b/mingw-w64-headers/crt/stdio.h
index 89bfa1473..5a6fe36c8 100644
--- a/mingw-w64-headers/crt/stdio.h
+++ b/mingw-w64-headers/crt/stdio.h
@@ -23,8 +23,13 @@ extern "C" {
 #ifndef _FILE_DEFINED
   struct _iobuf {
     char *_ptr;
+#ifdef _UCRT
+    char *_base;
+    int _cnt;
+#else
     int _cnt;
     char *_base;
+#endif
     int _flag;
     int _file;
     int _charbuf;
-- 
2.25.1



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

Reply via email to