summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2007-06-01 02:41:59 +0000
committerwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2007-06-01 02:41:59 +0000
commit8155414cfd182379f80e93ba92b96cb7aa473d6f (patch)
tree245214f48d515e6535821a69fe7395e792086ad4
parentbd4d1849cf57dd93b9d1f1eb75a4c77fd8856277 (diff)
downloadlibapr-8155414cfd182379f80e93ba92b96cb7aa473d6f.tar.gz
apr_app_initialize performs manipulation of environment variables (in particular
converting them from Unicode to char*) whereas WinCE has no enviroment - and also updates the argv array by parsing the Unicode command line which uses the CommandLineToArgvW method which not available on WinCE. Suppress both on WinCE. PR: 39892 Submitted by: Curt Arnold <carnold apache.org> Reviewed by: Davi Arnaut git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@543367 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--misc/win32/start.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/misc/win32/start.c b/misc/win32/start.c
index d59e375ba..170d1f08b 100644
--- a/misc/win32/start.c
+++ b/misc/win32/start.c
@@ -30,6 +30,7 @@
*/
int APR_DECLARE_DATA apr_app_init_complete = 0;
+#if !defined(_WIN32_WCE)
/* Used by apr_app_initialize to reprocess the environment
*
* An internal apr function to convert a double-null terminated set
@@ -87,6 +88,7 @@ static int warrsztoastr(const char * const * *retarr,
*retarr = newarr;
return args;
}
+#endif
/* Reprocess the arguments to main() for a completely apr-ized application
*/
@@ -101,7 +103,9 @@ APR_DECLARE(apr_status_t) apr_app_initialize(int *argc,
return rv;
}
-#if APR_HAS_UNICODE_FS
+#if defined(_WIN32_WCE)
+ apr_app_init_complete = 1;
+#elif APR_HAS_UNICODE_FS
IF_WIN_OS_IS_UNICODE
{
apr_wchar_t **wstrs;