From 2858119ba479b80b4482653031609affc33a81b0 Mon Sep 17 00:00:00 2001 From: Ove Kaaven Date: Mon, 26 Apr 1999 10:16:21 +0000 Subject: [PATCH] Optional implementation of wcslen(). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2284 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/wxchar.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/common/wxchar.cpp b/src/common/wxchar.cpp index 38eb0aea22..f95e5d6c8f 100644 --- a/src/common/wxchar.cpp +++ b/src/common/wxchar.cpp @@ -106,6 +106,15 @@ bool WXDLLEXPORT wxOKlibc() return TRUE; } +#ifdef wxNEED_WCSLEN +size_t WXDLLEXPORT wcslen(const wchar_t *s) +{ + size_t len; + while (s[len]) len++; + return len; +} +#endif + #ifndef wxStrdup wxChar * WXDLLEXPORT wxStrdup(const wxChar *psz) { -- 2.45.2