X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0304608682a693951cd8699ade932b102d72328a..f61757b17c623137d439b3cbe34960f7ce1e9601:/src/common/wxchar.cpp diff --git a/src/common/wxchar.cpp b/src/common/wxchar.cpp index 74d9ec514b..fba42b9352 100644 --- a/src/common/wxchar.cpp +++ b/src/common/wxchar.cpp @@ -113,10 +113,10 @@ bool WXDLLEXPORT wxOKlibc() return TRUE; } -#ifdef wxNEED_WCSLEN +#ifndef HAVE_WCSLEN size_t WXDLLEXPORT wcslen(const wchar_t *s) { - size_t len; + size_t len = 0; while (s[len]) len++; return len; }