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:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user