X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/16882c9e3724a9cd381c072cc2a2d39e5c247e0d..d8359d3ca077993d3ef61d6c09000ce7beeb577b:/include/wx/wxcrtbase.h diff --git a/include/wx/wxcrtbase.h b/include/wx/wxcrtbase.h index 0f5f16d2e7..67f69da6ce 100644 --- a/include/wx/wxcrtbase.h +++ b/include/wx/wxcrtbase.h @@ -222,6 +222,14 @@ 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 +#endif + +#if wxCHECK_VISUALC_VERSION(8) || defined(HAVE_WCSNLEN) + #define wxCRT_StrnlenW wcsnlen +#endif /* define wxCRT_StricmpA/W and wxCRT_StrnicmpA/W for various compilers */