mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-05 14:06:27 -05:00
net: Drop unneeded Windows headers in compat.h
No interface from the mswsock.h header is used. According to https://docs.microsoft.com/en-us/windows/win32/winsock/creating-a-basic-winsock-application "The Winsock2.h header file internally includes core elements from the Windows.h header file, so there is not usually an #include line for the Windows.h header file in Winsock applications."
This commit is contained in:
parent
f5bd46a4cc
commit
467c346448
1 changed files with 1 additions and 5 deletions
|
@ -18,11 +18,7 @@
|
||||||
#undef FD_SETSIZE // prevent redefinition compiler warning
|
#undef FD_SETSIZE // prevent redefinition compiler warning
|
||||||
#endif
|
#endif
|
||||||
#define FD_SETSIZE 1024 // max number of fds in fd_set
|
#define FD_SETSIZE 1024 // max number of fds in fd_set
|
||||||
|
#include <winsock2.h>
|
||||||
#include <winsock2.h> // Must be included before mswsock.h and windows.h
|
|
||||||
|
|
||||||
#include <mswsock.h>
|
|
||||||
#include <windows.h>
|
|
||||||
#include <ws2tcpip.h>
|
#include <ws2tcpip.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Add table
Reference in a new issue