diff options
author | Yang Tse <yangsita@gmail.com> | 2005-12-18 15:36:14 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2005-12-18 15:36:14 +0000 |
commit | d6c5d24af3627ec12721e7d286d426ed12901b55 (patch) | |
tree | fde31d9d7ef60d7edeb515ce82591a6283c0923b /lib | |
parent | 8a3280a2de29f1136e6f3986c670002b038ac903 (diff) |
Cleanup windows header includes. Where aplicable, inclusion of
windows.h winsock.h winsock2.h ws2tcpip.h is done in setup.h
Diffstat (limited to 'lib')
-rw-r--r-- | lib/connect.c | 1 | ||||
-rw-r--r-- | lib/getenv.c | 5 | ||||
-rw-r--r-- | lib/ldap.c | 1 | ||||
-rw-r--r-- | lib/timeval.c | 1 |
4 files changed, 0 insertions, 8 deletions
diff --git a/lib/connect.c b/lib/connect.c index 42c0ea6e7..2fb08d628 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -83,7 +83,6 @@ #endif #ifdef WIN32 -#include <windows.h> #define EINPROGRESS WSAEINPROGRESS #define EWOULDBLOCK WSAEWOULDBLOCK #define EISCONN WSAEISCONN diff --git a/lib/getenv.c b/lib/getenv.c index fbf37a992..46b3375d9 100644 --- a/lib/getenv.c +++ b/lib/getenv.c @@ -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'; diff --git a/lib/ldap.c b/lib/ldap.c index 9c877e19f..d71b513f8 100644 --- a/lib/ldap.c +++ b/lib/ldap.c @@ -39,7 +39,6 @@ #include <errno.h> #if defined(WIN32) -# include <windows.h> # include <malloc.h> # include <winldap.h> #endif diff --git a/lib/timeval.c b/lib/timeval.c index ce866ca82..11f3d7a06 100644 --- a/lib/timeval.c +++ b/lib/timeval.c @@ -26,7 +26,6 @@ #ifndef HAVE_GETTIMEOFDAY #ifdef WIN32 -#include <windows.h> #include <mmsystem.h> static int gettimeofday(struct timeval *tp, void *nothing) |