POSIX strnlen symbol is natively available since msvcr80 and also in all
ARM versions of msvcrt.dll.
---
 mingw-w64-crt/Makefile.am                              | 10 +++++++++-
 .../lib-common/api-ms-win-crt-string-l1-1-0.def        |  2 +-
 mingw-w64-crt/lib-common/ucrtbase.def.in               |  2 +-
 3 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/mingw-w64-crt/Makefile.am b/mingw-w64-crt/Makefile.am
index dca65f1ddd1e..81c129bf4831 100644
--- a/mingw-w64-crt/Makefile.am
+++ b/mingw-w64-crt/Makefile.am
@@ -459,6 +459,7 @@ src_msvcrt32=\
   misc/mbrtowc.c \
   misc/output_format.c \
   misc/seterrno.c \
+  misc/strnlen.c \
   misc/strtoimax.c \
   misc/strtoumax.c \
   misc/wassert.c \
@@ -496,6 +497,7 @@ src_msvcrt64=\
   misc/mbrtowc.c \
   misc/output_format.c \
   misc/seterrno.c \
+  misc/strnlen.c \
   misc/wassert.c \
   misc/wcrtomb.c \
   misc/wctob.c
@@ -665,6 +667,7 @@ src_crtdll=\
   misc/output_format.c \
   misc/purecall.c \
   misc/seterrno.c \
+  misc/strnlen.c \
   misc/strtoimax.c \
   misc/strtoumax.c \
   misc/wassert.c \
@@ -720,6 +723,7 @@ src_msvcrt10=\
   misc/output_format.c \
   misc/purecall.c \
   misc/seterrno.c \
+  misc/strnlen.c \
   misc/strtoimax.c \
   misc/strtoumax.c \
   misc/wassert.c \
@@ -763,6 +767,7 @@ src_msvcrt20=\
   misc/output_format.c \
   misc/purecall.c \
   misc/seterrno.c \
+  misc/strnlen.c \
   misc/strtoimax.c \
   misc/strtoumax.c \
   misc/wassert.c \
@@ -801,6 +806,7 @@ src_msvcrt40=\
   misc/output_format.c \
   misc/purecall.c \
   misc/seterrno.c \
+  misc/strnlen.c \
   misc/strtoimax.c \
   misc/strtoumax.c \
   misc/wassert.c \
@@ -830,6 +836,7 @@ src_msvcr70=\
   misc/mbrtowc.c \
   misc/output_format.c \
   misc/seterrno.c \
+  misc/strnlen.c \
   misc/wassert.c \
   misc/wcrtomb.c \
   misc/wctob.c \
@@ -852,6 +859,7 @@ src_msvcr71=\
   misc/mbrtowc.c \
   misc/output_format.c \
   misc/seterrno.c \
+  misc/strnlen.c \
   misc/wassert.c \
   misc/wcrtomb.c \
   misc/wctob.c \
@@ -950,7 +958,7 @@ src_libmingwex=\
   misc/mingw_matherr.c   misc/mingw_mbwc_convert.c  misc/mingw_usleep.c     
misc/mingw_wcstod.c          misc/mingw_wcstof.c    \
   misc/mingw_wcstold.c \
   misc/mkstemp.c         misc/sleep.c           \
-  misc/strnlen.c         misc/strsafe.c         \
+  misc/strsafe.c \
   misc/tdelete.c         misc/tdestroy.c            misc/tfind.c           \
   misc/tsearch.c         misc/twalk.c           \
   misc/wcsnlen.c         misc/wcstof.c          \
diff --git a/mingw-w64-crt/lib-common/api-ms-win-crt-string-l1-1-0.def 
b/mingw-w64-crt/lib-common/api-ms-win-crt-string-l1-1-0.def
index 4bf46fe6b94d..aa0d058dbd00 100644
--- a/mingw-w64-crt/lib-common/api-ms-win-crt-string-l1-1-0.def
+++ b/mingw-w64-crt/lib-common/api-ms-win-crt-string-l1-1-0.def
@@ -175,7 +175,7 @@ strncat_s
 strncmp
 strncpy
 strncpy_s
-; strnlen replaced by emu
+strnlen
 strpbrk
 strspn
 strtok
diff --git a/mingw-w64-crt/lib-common/ucrtbase.def.in 
b/mingw-w64-crt/lib-common/ucrtbase.def.in
index bc1720a543a6..0c96c8345ad3 100644
--- a/mingw-w64-crt/lib-common/ucrtbase.def.in
+++ b/mingw-w64-crt/lib-common/ucrtbase.def.in
@@ -2538,7 +2538,7 @@ strncat_s
 strncmp
 strncpy
 strncpy_s
-; strnlen replaced by emu
+strnlen
 strpbrk
 strrchr
 strspn
-- 
2.20.1



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

Reply via email to