mirror of
https://github.com/curl/curl.git
synced 2026-07-23 02:27:16 +03:00
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:
parent
7e8fdad2d5
commit
03e7dff8ff
9 changed files with 3 additions and 33 deletions
|
|
@ -32,8 +32,6 @@
|
|||
|
||||
#ifdef _WIN32
|
||||
#include <winsock2.h>
|
||||
#include <ws2tcpip.h>
|
||||
#include <windows.h>
|
||||
#define close closesocket
|
||||
#else
|
||||
#include <sys/types.h> /* socket types */
|
||||
|
|
|
|||
|
|
@ -91,11 +91,11 @@
|
|||
|
||||
#include <stdio.h>
|
||||
#include <time.h>
|
||||
#ifndef __CYGWIN__
|
||||
#include <winsock2.h>
|
||||
#include <curl/curl.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
#endif
|
||||
#include <curl/curl.h>
|
||||
|
||||
|
||||
#define MAX_STRING 256
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue