summaryrefslogtreecommitdiffstats
path: root/googletest/include
diff options
context:
space:
mode:
authorYuriy Chernyshov <georgthegreat@gmail.com>2020-12-24 09:20:38 (GMT)
committerGitHub <noreply@github.com>2020-12-24 09:20:38 (GMT)
commit263220d2c1211e3ec95602ff3c81cf75cd55e19a (patch)
tree4b0c03ac6606f11d0998ee9b8fc7fb15bcc4ce37 /googletest/include
parentca4b7c9ff4d8a5c37ac51795b03ffe934958aeff (diff)
downloadgoogletest-263220d2c1211e3ec95602ff3c81cf75cd55e19a.zip
googletest-263220d2c1211e3ec95602ff3c81cf75cd55e19a.tar.gz
googletest-263220d2c1211e3ec95602ff3c81cf75cd55e19a.tar.bz2
Use proper feature test macro to test if library supports char8_trefs/pull/3183/head
Reference is here: https://en.cppreference.com/w/cpp/feature_test This PR fixes the weird case of compiling with `clang++ -std=c++17 -fchar8_t`
Diffstat (limited to 'googletest/include')
-rw-r--r--googletest/include/gtest/gtest-printers.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/googletest/include/gtest/gtest-printers.h b/googletest/include/gtest/gtest-printers.h
index 463f0af..5998b53 100644
--- a/googletest/include/gtest/gtest-printers.h
+++ b/googletest/include/gtest/gtest-printers.h
@@ -349,7 +349,7 @@ GTEST_IMPL_FORMAT_C_STRING_AS_POINTER_(char);
GTEST_IMPL_FORMAT_C_STRING_AS_POINTER_(const char);
GTEST_IMPL_FORMAT_C_STRING_AS_POINTER_(wchar_t);
GTEST_IMPL_FORMAT_C_STRING_AS_POINTER_(const wchar_t);
-#ifdef __cpp_char8_t
+#ifdef __cpp_lib_char8_t
GTEST_IMPL_FORMAT_C_STRING_AS_POINTER_(char8_t);
GTEST_IMPL_FORMAT_C_STRING_AS_POINTER_(const char8_t);
#endif