diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-11-02 10:12:22 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-11-02 10:12:22 +0000 |
commit | 24d47a6e07304cf0921f2d30734b3c64360773c3 (patch) | |
tree | 03bae425fc10d6c083e866a3e1ab5bf620dffe42 /lib/getenv.c | |
parent | 8a66584db4ab3bd1668a685785da7108f7550e95 (diff) | |
download | curl-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.c | 4 |
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) |