On Thu, 8 Apr 2021, Jeremy Drake via Mingw-w64-public wrote:
On Thu, 8 Apr 2021, Jeremy Drake via Mingw-w64-public wrote:
It looks like gnulib would Do The Right Thing if _IOERR were not defined
for UCRT. Could you do that?
I've confirmed that the following patch allows gnulib in libunistring to
build.
diff --git a/mingw-w64-headers/crt/stdio.h b/mingw-w64-headers/crt/stdio.h
index c7617798..8f795f62 100644
--- a/mingw-w64-headers/crt/stdio.h
+++ b/mingw-w64-headers/crt/stdio.h
@@ -120,6 +120,7 @@ extern FILE (* __MINGW_IMP_SYMBOL(_iob))[]; /* A pointer to
an array of FILE */
#define stderr (__acrt_iob_func(2))
#endif
+#ifndef _UCRT
#define _IOREAD 0x0001
#define _IOWRT 0x0002
@@ -135,6 +136,7 @@ extern FILE (* __MINGW_IMP_SYMBOL(_iob))[]; /* A pointer to
an array of FILE */
#ifdef _POSIX_
#define _IOAPPEND 0x0200
#endif
+#endif
#define _TWO_DIGIT_EXPONENT 0x1
This change looks good to me, can you send a full patch with
subject/author etc so we can apply it?
// Martin
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public