New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
curl-win32.h: Enable Unix Domain Sockets based on the Window SDK version #3939
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
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
lib/config-win32.h
Outdated
#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 */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo
Coveralls is silly again. |
2a2b8fc
to
83c86af
Compare
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.