win32: Various fixes
- Fix privlibdir in meson.build (Windows only loads DLLs from the same directory as the executable and doesn't support things like rpath).
- Fix format specifiers for DWORD values.
- Use
__MINGW_PRINTF_FORMAT
instead of__printf__
for MinGW builds. This replaces the old libintl workaround and also fixes many format warnings being displayed erroneously. - Fix duplicate definitions in arpa-inet.h, arpa-inet.c, and poll.h. When
_WIN32_WINNT >= 0x6000
(Vista),ws2tcpip.h
providesinet_ntop
andinet_pton
, andwinsock2.h
provides the equivalent ofpoll.h
.
Edited by Patrick Gaskin