summaryrefslogtreecommitdiff
path: root/pjlib/include/pj/compat/string.h
diff options
context:
space:
mode:
Diffstat (limited to 'pjlib/include/pj/compat/string.h')
-rw-r--r--pjlib/include/pj/compat/string.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/pjlib/include/pj/compat/string.h b/pjlib/include/pj/compat/string.h
index 56ae5c2f..fd041230 100644
--- a/pjlib/include/pj/compat/string.h
+++ b/pjlib/include/pj/compat/string.h
@@ -35,7 +35,11 @@
#if defined(_MSC_VER)
# define strcasecmp stricmp
-# define strncasecmp strnicmp
+# if defined(PJ_WIN32_WINCE) && PJ_WIN32_WINCE!=0
+# define strncasecmp _strnicmp
+# else
+# define strncasecmp strnicmp
+# endif
# define snprintf _snprintf
#else
# define stricmp strcasecmp