mirror of
https://github.com/moparisthebest/curl
synced 2024-12-23 08:38:49 -05:00
curl-win32.h: Enable Unix Domain Sockets based on the Windows SDK version
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 0fd6221f
we use the RS4
pre-processor variable that is present in newer versions of the
Windows SDK.
Closes #3939
This commit is contained in:
parent
5aa2347f22
commit
28526e9c80
@ -727,8 +727,12 @@ Vista
|
|||||||
#define USE_WIN32_CRYPTO
|
#define USE_WIN32_CRYPTO
|
||||||
|
|
||||||
/* Define to use Unix sockets. */
|
/* Define to use Unix sockets. */
|
||||||
#if defined(_MSC_VER) && _MSC_VER >= 1900
|
#if defined(_MSC_VER) && (_MSC_VER >= 1500)
|
||||||
/* #define USE_UNIX_SOCKETS */
|
/* sdkddkver.h first shipped with Platform SDK v6.0A included with VS2008 */
|
||||||
|
#include <sdkddkver.h>
|
||||||
|
#if defined(NTDDI_WIN10_RS4)
|
||||||
|
#define USE_UNIX_SOCKETS
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* ---------------------------------------------------------------- */
|
/* ---------------------------------------------------------------- */
|
||||||
|
Loading…
Reference in New Issue
Block a user