Replace std::wcslen() with wcslen()

OS/2 kLIBC has wcslen(), but it is not in std namespace.
This commit is contained in:
KO Myung-Hun 2018-10-11 17:35:12 +09:00
parent d06442d47a
commit ef3103a5c9
2 changed files with 1 additions and 8 deletions

View File

@ -402,13 +402,6 @@ typedef struct _RTL_CRITICAL_SECTION GTEST_CRITICAL_SECTION;
# include <strings.h>
#endif // GTEST_OS_WINDOWS
#if GTEST_OS_OS2
namespace std {
// OS/2 kLIBC has wcslen(), but it is not in ::std namespace.
using ::wcslen;
}
#endif
#if GTEST_OS_LINUX_ANDROID
// Used to define __ANDROID_API__ matching the target NDK API level.
# include <android/api-level.h> // NOLINT

View File

@ -348,7 +348,7 @@ void PrintTo(const wchar_t* s, ostream* os) {
*os << "NULL";
} else {
*os << ImplicitCast_<const void*>(s) << " pointing to ";
PrintCharsAsStringTo(s, std::wcslen(s), os);
PrintCharsAsStringTo(s, wcslen(s), os);
}
}
#endif // wchar_t is native