apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r543330 - /apr/apr/branches/1.2.x/misc/win32/env.c
Date Fri, 01 Jun 2007 00:06:22 GMT
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
 }



Mime
View raw message