aboutsummaryrefslogtreecommitdiff
path: root/src/compat.h
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-10-22 18:21:47 +0300
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-10-22 21:45:10 +0300
commit467c34644861a5267601255650e27c7aadab31dc (patch)
tree55d02eaa53184f4f6edf905ae5848fa3cc77fc23 /src/compat.h
parentf5bd46a4cc6d395ce71ecb99852c1774235a249c (diff)
downloadbitcoin-467c34644861a5267601255650e27c7aadab31dc.tar.xz
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."
Diffstat (limited to 'src/compat.h')
-rw-r--r--src/compat.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/compat.h b/src/compat.h
index 0be02cae03..5fa6589792 100644
--- a/src/compat.h
+++ b/src/compat.h
@@ -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