summaryrefslogtreecommitdiff
path: root/lib/getenv.c
diff options
context:
space:
mode:
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)