summaryrefslogtreecommitdiff
path: root/lib/getenv.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2005-12-18 15:36:14 +0000
committerYang Tse <yangsita@gmail.com>2005-12-18 15:36:14 +0000
commitd6c5d24af3627ec12721e7d286d426ed12901b55 (patch)
treefde31d9d7ef60d7edeb515ce82591a6283c0923b /lib/getenv.c
parent8a3280a2de29f1136e6f3986c670002b038ac903 (diff)
downloadcurl-d6c5d24af3627ec12721e7d286d426ed12901b55.tar.gz
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/getenv.c')
-rw-r--r--lib/getenv.c5
1 files changed, 0 insertions, 5 deletions
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';