summaryrefslogtreecommitdiff
path: root/lib/getenv.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-11-02 10:12:22 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-11-02 10:12:22 +0000
commit24d47a6e07304cf0921f2d30734b3c64360773c3 (patch)
tree03bae425fc10d6c083e866a3e1ab5bf620dffe42 /lib/getenv.c
parent8a66584db4ab3bd1668a685785da7108f7550e95 (diff)
downloadcurl-24d47a6e07304cf0921f2d30734b3c64360773c3.tar.gz
Paul Nolan fix to make libcurl build nicely on Windows CE
Diffstat (limited to 'lib/getenv.c')
-rw-r--r--lib/getenv.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/getenv.c b/lib/getenv.c
index 8f8311bf0..fbf37a992 100644
--- a/lib/getenv.c
+++ b/lib/getenv.c
@@ -43,6 +43,9 @@
static
char *GetEnv(const char *variable)
{
+#ifdef _WIN32_WCE
+ return NULL;
+#else
#ifdef WIN32
/* This shit requires windows.h (HUGE) to be included */
char env[MAX_PATH]; /* MAX_PATH is from windef.h */
@@ -62,6 +65,7 @@ char *GetEnv(const char *variable)
#endif
#endif
return (env && env[0])?strdup(env):NULL;
+#endif
}
char *curl_getenv(const char *v)