mirror of
https://github.com/curl/curl.git
synced 2026-08-26 19:43:32 +03:00
Cleanup windows header includes. Where aplicable, inclusion of
windows.h winsock.h winsock2.h ws2tcpip.h is done in setup.h
This commit is contained in:
parent
8a3280a2de
commit
d6c5d24af3
10 changed files with 4 additions and 29 deletions
|
|
@ -83,7 +83,6 @@
|
|||
#endif
|
||||
|
||||
#ifdef WIN32
|
||||
#include <windows.h>
|
||||
#define EINPROGRESS WSAEINPROGRESS
|
||||
#define EWOULDBLOCK WSAEWOULDBLOCK
|
||||
#define EISCONN WSAEISCONN
|
||||
|
|
|
|||
|
|
@ -27,10 +27,6 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef WIN32
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
#ifdef VMS
|
||||
#include <unixlib.h>
|
||||
#endif
|
||||
|
|
@ -47,7 +43,6 @@ char *GetEnv(const char *variable)
|
|||
return NULL;
|
||||
#else
|
||||
#ifdef WIN32
|
||||
/* This shit requires windows.h (HUGE) to be included */
|
||||
char env[MAX_PATH]; /* MAX_PATH is from windef.h */
|
||||
char *temp = getenv(variable);
|
||||
env[0] = '\0';
|
||||
|
|
|
|||
|
|
@ -39,7 +39,6 @@
|
|||
#include <errno.h>
|
||||
|
||||
#if defined(WIN32)
|
||||
# include <windows.h>
|
||||
# include <malloc.h>
|
||||
# include <winldap.h>
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -26,7 +26,6 @@
|
|||
#ifndef HAVE_GETTIMEOFDAY
|
||||
|
||||
#ifdef WIN32
|
||||
#include <windows.h>
|
||||
#include <mmsystem.h>
|
||||
|
||||
static int gettimeofday(struct timeval *tp, void *nothing)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue