Fix PJLIB on WinCE:
- Added CPU and OS autodetection feature in config.h.
For target CPU type, now we don't need to specify PJ_M_*
anymore.
- Fix stricmp_alnum() link error on WinCE
- Exclude error message test on WincE, since WinCE doesn't
have full error reporting capability as Win32.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@640 74dad513-b988-da41-8d7b-12977e46ad98
diff --git a/pjlib/include/pj/compat/string.h b/pjlib/include/pj/compat/string.h
index 2de20fc..ca14bc7 100644
--- a/pjlib/include/pj/compat/string.h
+++ b/pjlib/include/pj/compat/string.h
@@ -37,6 +37,11 @@
/* For sprintf family */
#include <stdio.h>
+/* On WinCE, string stuffs are declared in stdlib.h */
+#if defined(PJ_HAS_STDLIB_H) && PJ_HAS_STDLIB_H!=0
+# include <stdlib.h>
+#endif
+
#if defined(_MSC_VER)
# define strcasecmp _stricmp
# define strncasecmp _strnicmp