Skip to content

Commit 467c346

Browse files
committed
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."
1 parent f5bd46a commit 467c346

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/compat.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,7 @@
1818
#undef FD_SETSIZE // prevent redefinition compiler warning
1919
#endif
2020
#define FD_SETSIZE 1024 // max number of fds in fd_set
21-
22-
#include <winsock2.h> // Must be included before mswsock.h and windows.h
23-
24-
#include <mswsock.h>
25-
#include <windows.h>
21+
#include <winsock2.h>
2622
#include <ws2tcpip.h>
2723
#include <stdint.h>
2824
#else

0 commit comments

Comments
 (0)