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:
Yang Tse 2005-12-18 15:36:14 +00:00
parent 8a3280a2de
commit d6c5d24af3
10 changed files with 4 additions and 29 deletions

View file

@ -83,7 +83,6 @@
#endif
#ifdef WIN32
#include <windows.h>
#define EINPROGRESS WSAEINPROGRESS
#define EWOULDBLOCK WSAEWOULDBLOCK
#define EISCONN WSAEISCONN

View file

@ -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';

View file

@ -39,7 +39,6 @@
#include <errno.h>
#if defined(WIN32)
# include <windows.h>
# include <malloc.h>
# include <winldap.h>
#endif

View file

@ -26,7 +26,6 @@
#ifndef HAVE_GETTIMEOFDAY
#ifdef WIN32
#include <windows.h>
#include <mmsystem.h>
static int gettimeofday(struct timeval *tp, void *nothing)