provide our own implementation of wxStrnlen if it's not available; add tests for it

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58069 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Francesco Montorsi
2009-01-13 12:01:30 +00:00
parent 0c9464ce6b
commit 7c5ac499c8
6 changed files with 75 additions and 102 deletions

View File

@@ -225,6 +225,9 @@ WXDLLIMPEXP_BASE void *calloc( size_t num, size_t size );
/* 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
#endif
#if wxCHECK_VISUALC_VERSION(8) || defined(HAVE_WCSNLEN)
#define wxCRT_StrnlenW wcsnlen
#endif