From 24d47a6e07304cf0921f2d30734b3c64360773c3 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 2 Nov 2004 10:12:22 +0000 Subject: Paul Nolan fix to make libcurl build nicely on Windows CE --- lib/getenv.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/getenv.c') 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) -- cgit v1.2.3