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:05:29 UTC

svn commit: r543329 - /apr/apr/trunk/misc/win32/env.c

Author: wrowe
Date: Thu May 31 17:05:28 2007
New Revision: 543329

URL: http://svn.apache.org/viewvc?view=rev&rev=543329
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

Modified:
    apr/apr/trunk/misc/win32/env.c

Modified: apr/apr/trunk/misc/win32/env.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/misc/win32/env.c?view=diff&rev=543329&r1=543328&r2=543329
==============================================================================
--- apr/apr/trunk/misc/win32/env.c (original)
+++ apr/apr/trunk/misc/win32/env.c Thu May 31 17:05:28 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
 }