summaryrefslogtreecommitdiffstats
path: root/Utilities/cmcurl/getenv.c
diff options
context:
space:
mode:
Diffstat (limited to 'Utilities/cmcurl/getenv.c')
-rw-r--r--Utilities/cmcurl/getenv.c23
1 files changed, 11 insertions, 12 deletions
diff --git a/Utilities/cmcurl/getenv.c b/Utilities/cmcurl/getenv.c
index 302db2e..4f955f8 100644
--- a/Utilities/cmcurl/getenv.c
+++ b/Utilities/cmcurl/getenv.c
@@ -1,16 +1,16 @@
/***************************************************************************
- * _ _ ____ _
- * Project ___| | | | _ \| |
- * / __| | | | |_) | |
- * | (__| |_| | _ <| |___
+ * _ _ ____ _
+ * Project ___| | | | _ \| |
+ * / __| | | | |_) | |
+ * | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2004, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2005, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* are also available at http://curl.haxx.se/docs/copyright.html.
- *
+ *
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
* copies of the Software, and permit persons to whom the Software is
* furnished to do so, under the terms of the COPYING file.
@@ -27,24 +27,22 @@
#include <stdlib.h>
#include <string.h>
-#ifdef WIN32
-#include <windows.h>
-#endif
-
#ifdef VMS
#include <unixlib.h>
#endif
#include <curl/curl.h>
-#include "curl_memory.h"
+#include "memory.h"
#include "memdebug.h"
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 */
char *temp = getenv(variable);
env[0] = '\0';
@@ -62,6 +60,7 @@ char *GetEnv(const char *variable)
#endif
#endif
return (env && env[0])?strdup(env):NULL;
+#endif
}
char *curl_getenv(const char *v)