summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2007-06-01 00:05:28 +0000
committerWilliam A. Rowe Jr <wrowe@apache.org>2007-06-01 00:05:28 +0000
commit78d8b8d2bd6a48a69b93c31c9015acebd728f50b (patch)
treeebc1e501ecf764f408e04334dd66afa6a7e3fefc /misc
parent619643723732f304fd0cb80952545270164fe64f (diff)
downloadapr-78d8b8d2bd6a48a69b93c31c9015acebd728f50b.tar.gz
apr_env_get, apr_env_set and apr_env_delete to return APR_ENOTIMPL on Windows CE.
PR: 39867 Submitted by: Curt Arnold <carnold apache.org> Reviewed by: Davi Arnaut git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@543329 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'misc')
-rw-r--r--misc/win32/env.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/misc/win32/env.c b/misc/win32/env.c
index e99ff8d47..abb983d71 100644
--- a/misc/win32/env.c
+++ b/misc/win32/env.c
@@ -24,8 +24,7 @@
#include "apr_pools.h"
#include "apr_strings.h"
-
-#if APR_HAS_UNICODE_FS
+#if APR_HAS_UNICODE_FS && !defined(_WIN32_WCE)
static apr_status_t widen_envvar_name (apr_wchar_t *buffer,
apr_size_t bufflen,
const char *envvar)
@@ -47,6 +46,9 @@ APR_DECLARE(apr_status_t) apr_env_get(char **value,
const char *envvar,
apr_pool_t *pool)
{
+#if defined(_WIN32_WCE)
+ return APR_ENOTIMPL;
+#else
char *val = NULL;
DWORD size;
@@ -115,6 +117,7 @@ APR_DECLARE(apr_status_t) apr_env_get(char **value,
*value = val;
return APR_SUCCESS;
+#endif
}
@@ -122,6 +125,9 @@ APR_DECLARE(apr_status_t) apr_env_set(const char *envvar,
const char *value,
apr_pool_t *pool)
{
+#if defined(_WIN32_WCE)
+ return APR_ENOTIMPL;
+#else
#if APR_HAS_UNICODE_FS
IF_WIN_OS_IS_UNICODE
{
@@ -153,11 +159,15 @@ APR_DECLARE(apr_status_t) apr_env_set(const char *envvar,
#endif
return APR_SUCCESS;
+#endif
}
APR_DECLARE(apr_status_t) apr_env_delete(const char *envvar, apr_pool_t *pool)
{
+#if defined(_WIN32_WCE)
+ return APR_ENOTIMPL;
+#else
#if APR_HAS_UNICODE_FS
IF_WIN_OS_IS_UNICODE
{
@@ -181,4 +191,5 @@ APR_DECLARE(apr_status_t) apr_env_delete(const char *envvar, apr_pool_t *pool)
#endif
return APR_SUCCESS;
+#endif
}