On Wed, 31 May 2017, wm4 wrote:
On Wed, 31 May 2017 13:21:42 +0300 Martin Storsjö <[email protected]> wrote:This makes the getaddrinfo functions visible, which aren't normally by default on legacy mingw. We already force __MSVCRT_VERSION__ to an XP version. --- configure | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure b/configure index fb3920a261..77926bb85b 100755 --- a/configure +++ b/configure @@ -4133,6 +4133,8 @@ probe_libc(){ add_${pfx}cppflags -U__STRICT_ANSI__ -D__USE_MINGW_ANSI_STDIO=1 check_${pfx}cpp_condition _mingw.h "__MSVCRT_VERSION__ < 0x0700" && add_${pfx}cppflags -D__MSVCRT_VERSION__=0x0700 + check_${pfx}cpp_condition windows.h "_WIN32_WINNT < 0x0501" && + add_${pfx}cppflags -D_WIN32_WINNT=0x0501 eval test \$${pfx_no_}cc_type = "gcc" && add_${pfx}cppflags -D__printf__=__gnu_printf__ elif check_${pfx}cpp_condition crtversion.h "defined _VC_CRT_MAJOR_VERSION"; thenThat's all nice and good, but why not drop support for legacy mingw?
Well, given that we had 46e3936fb04 in for half a year without any complaints about the missing alignment, we probably don't have many serious users of it, so I guess it could be done. I have an ancient cross-environment of it set up that I test occasionally though.
In this case, we don't really gain much else than these few lines in configure, or is there something else we're missing? In that case I don't mind keeping them for another few years unless they end up being a bigger problem.
// Martin _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
