mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-02 12:03:00 +02: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:
@@ -18,11 +18,7 @@
|
||||
#undef FD_SETSIZE // prevent redefinition compiler warning
|
||||
#endif
|
||||
#define FD_SETSIZE 1024 // max number of fds in fd_set
|
||||
|
||||
#include <winsock2.h> // Must be included before mswsock.h and windows.h
|
||||
|
||||
#include <mswsock.h>
|
||||
#include <windows.h>
|
||||
#include <winsock2.h>
|
||||
#include <ws2tcpip.h>
|
||||
#include <stdint.h>
|
||||
#else
|
||||
|
Reference in New Issue
Block a user