misc/win32/misc.c depends on _UNICODE not being set and all Windows API calls being char* based. On WinCE, _UNICODE is forced to be set. This patch modifies to Windows version detection code to use TCHAR and adds the explicit "A" qualifier to LoadLibrary and GetProcAddress so the char* based versions are used regardless.
Created attachment 18524 [details] Patch to make misc.c compile when _UNICODE set
Created attachment 18531 [details] Avoids _tstoi which is missing on link in WinCE
Created attachment 18532 [details] Third time is the charm GetProcAddressA is only defined for WinCE (where GetProcAddress takes wchar_t*). GetProcAddress on other platforms only takes char* regardless of _UNICODE setting.
Mass reassign the 44 open apr-bugs to apr bug list
It compiles and builds fine on VS C++ 6.0
There's an assumption that tchar.h is available to our users of mingw, borland, etc. If this is not true, this patch needs to be refactored. Can we verify before we take 2 steps backwards to make one step forwards?
Borland C++ Builder 6.0 and newer versions have tchar.h The mingw-runtime-3.9 (Oct 27, 2005) has it too.
Patch committed to trunk in revision 558506: http://svn.apache.org/viewvc?view=rev&revision=558506