You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2007/06/01 02:06:22 UTC
svn commit: r543330 - /apr/apr/branches/1.2.x/misc/win32/env.c
Author: wrowe
Date: Thu May 31 17:06:22 2007
New Revision: 543330
URL: http://svn.apache.org/viewvc?view=rev&rev=543330
Log:
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
Backport: 543329
Modified:
apr/apr/branches/1.2.x/misc/win32/env.c
Modified: apr/apr/branches/1.2.x/misc/win32/env.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.2.x/misc/win32/env.c?view=diff&rev=543330&r1=543329&r2=543330
==============================================================================
--- apr/apr/branches/1.2.x/misc/win32/env.c (original)
+++ apr/apr/branches/1.2.x/misc/win32/env.c Thu May 31 17:06:22 2007
@@ -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 @@
const char *envvar,
apr_pool_t *pool)
{
+#if defined(_WIN32_WCE)
+ return APR_ENOTIMPL;
+#else
char *val = NULL;
DWORD size;
@@ -115,6 +117,7 @@
*value = val;
return APR_SUCCESS;
+#endif
}
@@ -122,6 +125,9 @@
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 @@
#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 @@
#endif
return APR_SUCCESS;
+#endif
}