aboutsummaryrefslogtreecommitdiffstats
path: root/src/gtest-printers.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/gtest-printers.cc')
-rw-r--r--src/gtest-printers.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gtest-printers.cc b/src/gtest-printers.cc
index 29c799a5..bb794eed 100644
--- a/src/gtest-printers.cc
+++ b/src/gtest-printers.cc
@@ -45,6 +45,7 @@
#include "gtest/gtest-printers.h"
#include <ctype.h>
#include <stdio.h>
+#include <cwchar>
#include <ostream> // NOLINT
#include <string>
#include "gtest/internal/gtest-port.h"
@@ -335,7 +336,7 @@ void PrintTo(const wchar_t* s, ostream* os) {
*os << "NULL";
} else {
*os << ImplicitCast_<const void*>(s) << " pointing to ";
- PrintCharsAsStringTo(s, wcslen(s), os);
+ PrintCharsAsStringTo(s, std::wcslen(s), os);
}
}
#endif // wchar_t is native