Skip to content

Commit aa2e91f

Browse files
Continuation for #3183
Some of the #ifdefs were missed in original PR. Should be fixed now.
1 parent 7735334 commit aa2e91f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

googletest/include/gtest/gtest-printers.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ GTEST_IMPL_FORMAT_C_STRING_AS_POINTER_(const char32_t);
384384

385385
GTEST_IMPL_FORMAT_C_STRING_AS_STRING_(char, ::std::string);
386386
GTEST_IMPL_FORMAT_C_STRING_AS_STRING_(const char, ::std::string);
387-
#ifdef __cpp_char8_t
387+
#ifdef __cpp_lib_char8_t
388388
GTEST_IMPL_FORMAT_C_STRING_AS_STRING_(char8_t, ::std::u8string);
389389
GTEST_IMPL_FORMAT_C_STRING_AS_STRING_(const char8_t, ::std::u8string);
390390
#endif
@@ -556,7 +556,7 @@ inline void PrintTo(const ::std::string& s, ::std::ostream* os) {
556556
}
557557

558558
// Overloads for ::std::u8string
559-
#ifdef __cpp_char8_t
559+
#ifdef __cpp_lib_char8_t
560560
GTEST_API_ void PrintU8StringTo(const ::std::u8string& s, ::std::ostream* os);
561561
inline void PrintTo(const ::std::u8string& s, ::std::ostream* os) {
562562
PrintU8StringTo(s, os);

0 commit comments

Comments
 (0)