summaryrefslogtreecommitdiffstats
path: root/src/gtest-printers.cc
diff options
context:
space:
mode:
authorkosak <kosak@google.com>2014-03-12 21:03:35 (GMT)
committerkosak <kosak@google.com>2014-03-12 21:03:35 (GMT)
commit134389c0446c786ee1170f7cf60b9ff1dd78d56f (patch)
tree019e75c8071e764dcfb596b67ed655904c0e1447 /src/gtest-printers.cc
parent41a8bc67ab7e7a81735e9d560f54d8d130dcc3ab (diff)
downloadgoogletest-134389c0446c786ee1170f7cf60b9ff1dd78d56f.zip
googletest-134389c0446c786ee1170f7cf60b9ff1dd78d56f.tar.gz
googletest-134389c0446c786ee1170f7cf60b9ff1dd78d56f.tar.bz2
Standards compliance changes to fix QNX build.
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 29c799a..bb794ee 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