Mercurial > dwindows
comparison dw.h @ 1960:22e3e829be13
Win: Switch to using winsock 2.x, this will remove support for ancient versions of Windows like 95 and NT 3.5 and older...
This allows us to use unix domain sockets with Windows 10 for the sockpipe() macro... (used in my HandyFTP application)
When compiled with Visual Studio 2017 5.5 and newer will use unix domain sockets, however this may fail on older Windows 10 versions and older versions of Windows.
I am not sure it is worth the effort to dual mode it, when it can just be compiled with an older compiler and function on older versions of Windows if necessary.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 26 Jul 2019 06:58:41 +0000 |
parents | 758f49e54566 |
children | d83a86f5fe7f |
comparison
equal
deleted
inserted
replaced
1959:9ac432c8620c | 1960:22e3e829be13 |
---|---|
489 #define KC_ALT (1 << 19) /* NSAlternateKeyMask */ | 489 #define KC_ALT (1 << 19) /* NSAlternateKeyMask */ |
490 #endif | 490 #endif |
491 | 491 |
492 /* Windows specific section */ | 492 /* Windows specific section */ |
493 #if defined(__WIN32__) || defined(WINNT) | 493 #if defined(__WIN32__) || defined(WINNT) |
494 #include <winsock2.h> | |
494 #include <windows.h> | 495 #include <windows.h> |
495 #include <commctrl.h> | 496 #include <commctrl.h> |
496 | 497 |
497 #if defined(MSVC) && !defined(API) | 498 #if defined(MSVC) && !defined(API) |
498 # if defined(__MINGW32__) && defined(BUILD_DLL) | 499 # if defined(__MINGW32__) && defined(BUILD_DLL) |