windows: delete redundant headers

`winsock2.h` pulls in `windows.h`. `ws2tcpip.h` pulls in `winsock2.h`.
`winsock2.h` and `ws2tcpip.h` are also pulled by `curl/curl.h`.

Keep only those headers that are not already included, or the code under
it uses something from that specific header.

Closes #12539
This commit is contained in:
Viktor Szakats 2023-12-12 19:27:44 +00:00
parent 7e8fdad2d5
commit 03e7dff8ff
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
9 changed files with 3 additions and 33 deletions

View file

@ -169,7 +169,6 @@ int main(void) { ; return 0; }
# define WIN32_LEAN_AND_MEAN
# endif
# include <winsock2.h>
# include <windows.h>
#endif
int main(void)
{
@ -189,7 +188,6 @@ int main(void)
# define WIN32_LEAN_AND_MEAN
# endif
# include <winsock2.h>
# include <windows.h>
#endif
int main(void)
{
@ -208,7 +206,6 @@ int main(void)
# define WIN32_LEAN_AND_MEAN
# endif
# include <winsock2.h>
# include <windows.h>
#endif
int main(void)
{
@ -228,7 +225,6 @@ int main(void)
# define WIN32_LEAN_AND_MEAN
# endif
# include <winsock2.h>
# include <windows.h>
#endif
int main(void)
{
@ -304,7 +300,6 @@ int main(void)
# define WIN32_LEAN_AND_MEAN
# endif
# include <winsock2.h>
# include <windows.h>
#endif
/* includes start */
#ifdef HAVE_SYS_TYPES_H