add support for wxStrnlen for those platforms where it's available

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58060 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Francesco Montorsi
2009-01-12 23:25:39 +00:00
parent 54e757fc96
commit f1b63efe89
5 changed files with 116 additions and 2 deletions

View File

@@ -222,6 +222,11 @@ WXDLLIMPEXP_BASE void *calloc( size_t num, size_t size );
#endif /* HAVE_WCSTOULL */
#endif
/* Not all compilers have strnlen(); e.g. MSVC 6.x and 7.x don't have it */
#if wxCHECK_VISUALC_VERSION(8) || defined(HAVE_STRNLEN)
#define wxCRT_StrnlenA strnlen
#define wxCRT_StrnlenW wcsnlen
#endif
/* define wxCRT_StricmpA/W and wxCRT_StrnicmpA/W for various compilers */