Replace std::wcslen() with wcslen()
OS/2 kLIBC has wcslen(), but it is not in std namespace.
This commit is contained in:
parent
d06442d47a
commit
ef3103a5c9
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user