Microsoft considers POSIX function names to be deprecated, and provides alternative names starting with an underscore. A deprecation warning is raised if the old names are used, which can be disabled with the _CRT_NONSTDC_NO_WARNINGS macro.
https://learn.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-3-c4996?view=msvc-170#posix-function-names Signed-off-by: Antonin Décimo <anto...@tarides.com> --- mingw-w64-libraries/winpthreads/configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mingw-w64-libraries/winpthreads/configure.ac b/mingw-w64-libraries/winpthreads/configure.ac index 01602159b..4b7fa84dc 100644 --- a/mingw-w64-libraries/winpthreads/configure.ac +++ b/mingw-w64-libraries/winpthreads/configure.ac @@ -22,7 +22,7 @@ AM_PROG_AR AS_CASE([$CC], [*cl|*cl.exe|*clang-cl|*clang-cl.exe], [RC="$am_aux_dir/windres-rc rc.exe" - CPPFLAGS="${CPPFLAGS} -nologo"]) + CPPFLAGS="${CPPFLAGS} -nologo -D_CRT_NONSTDC_NO_WARNINGS"]) AC_SUBST([RCFLAGS]) # Libtool 2.4 should check them correctly -- 2.43.0 _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public