On Sun, 15 Jul 2012, Diego Biurrun wrote:

On Sun, Jul 15, 2012 at 01:58:13AM +0300, Martin Storsjö wrote:

This function is only available in the headers if unconditionally
targeting a version >= XP. It is not strictly necessary, since we
try loading these functions dynamically at runtime on windows in
the fallback, but this makes things a bit faster and more
straightforward.

On mingw32, this function isn't visible by default, while it is
on mingw64 (on both 32 and 64 bit).

So why not make XP the baseline and simplify this?

That would require adding an explicit -D_WIN32_WINNT=0x500 in our configure script, which isn't all too pretty. The getaddrinfo fallbacks in general has to be kept anyway (for other OSes), so there's not much to be gained in code simplicity by bumping this, and mingw64 (which most use these days, afaik) has that as default anyway.

// Martin
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to