Much of apr_app_initialize performs manipulation of environment variables (in particularly converting them from Unicode to char*). Since WinCE doesn't have environment variables and GetEnvironmentStringW or FreeEnvironmentStringsW, it is simplest just to #if most of that code out. apr_app_initialize also update the argv array by parsing the Unicode command line which uses the CommandLineToArgvW API method which is not available on WinCE (and not in the Win32 API documentation). In the patch, the code which gets the Unicode command line, parses and updates the ASCII argv array is suppressed on WinCE.
Created attachment 18525 [details] #if's out environment and command line reparsing for WinCE
Mass reassign the 44 open apr-bugs to apr bug list
It compiles and builds fine on VS C++ 6.0
Committed, thanks!