curl-win32.h: Enable Unix Domain Sockets based on the Window SDK version #3939
Conversation
Yes, as the feature is not compiler-dependent, I'd rather remove the existing check. sdkddkver.h has always been there and only winsdkver.h has been introduced in a Windows SDK later than the lowest one we support, right? I always confuse these headers. |
Yes that was pretty much view as well.
I've only got the latest SDK's installed on my home workstation and laptop, but here I have v5.0, v7.0, v7.0A, etc... Both are present in v7.0+ but not v5.0. As such I think we can use WINVER / _WIN32_WINNT to include sdkddkver.h - I will play about with that tonight. |
a380796
to
2a2b8fc
|
#if defined(_MSC_VER) && _MSC_VER >= 1900 | ||
/* #define USE_UNIX_SOCKETS */ | ||
#if defined(_MSC_VER) && (_MSC_VER >= 1500) | ||
/* sdlddkver.h first shipped with Platform SDK v6.0A included with VS2008 */ |
MarcelRaad
May 25, 2019
Member
Typo
Typo
Coveralls is silly again. |
2a2b8fc
to
83c86af
Recent Windows versions actually support Unix Domain Sockets. Cf. <curl/curl#3939>.
Microsoft added support for Unix Domain Sockets in Windows 10 1803 (RS4).
Rather than expect the user to enable Unix Domain Sockets by uncommenting the #define that was added in 0fd6221 we use the RS4 pre-processor variable that is present in newer versions of the Windows SDK.