SDL_net
SDL_net copied to clipboard
Restore support for building with Winsock 1.1 (SDL 1.2)
Why do we truly need this?
I mean, the windows version relies on iphlpapi.dll even in the SDL-1.2 branch which isn't available (at least by default as far as I know) on w9x/nt4, so we certainly shouldn't care about winsock-1.x.
Closing. @slouken, @icculus: reopen and/or merge this if you disagree.
Why do we truly need this?
This is needed to support Windows 95 without the Winsock 2 upgrade installed.
I mean, the windows version relies on iphlpapi.dll even in the SDL-1.2 branch which isn't available (at least by default as far as I know) on w9x/nt4, so we certainly shouldn't care about winsock-1.x.
iphlpapi.dll is included with newer versions of Internet Explorer (which doesn't guarantee the existence of the Winsock 2 upgrade). In a Winsock 2 build, it'll be necessary to replace GetAdaptersInfo
for UWP builds anyway (see issue #30), and while it would still be necessary to have GetAdaptersInfo
in Winsock 1 builds, it would be better to address it in a separate PR.
OK then, leaving decision to @slouken and/or @icculus
If this gets accepted though, note that one issue is this: https://github.com/libsdl-org/SDL_net/issues/26 (original report at https://github.com/mxe/mxe/issues/550), i.e.: iphlpapi.h needing ws2tcpip.h with some SDKs.
We don't officially support Windows 95, but I think this is harmless. @ccawley2011, can you fix this PR so you don't reintroduce #26?