Skip to content

Commit 263220d

Browse files
Use proper feature test macro to test if library supports char8_t
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`
1 parent ca4b7c9 commit 263220d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

googletest/include/gtest/gtest-printers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ GTEST_IMPL_FORMAT_C_STRING_AS_POINTER_(char);
349349
GTEST_IMPL_FORMAT_C_STRING_AS_POINTER_(const char);
350350
GTEST_IMPL_FORMAT_C_STRING_AS_POINTER_(wchar_t);
351351
GTEST_IMPL_FORMAT_C_STRING_AS_POINTER_(const wchar_t);
352-
#ifdef __cpp_char8_t
352+
#ifdef __cpp_lib_char8_t
353353
GTEST_IMPL_FORMAT_C_STRING_AS_POINTER_(char8_t);
354354
GTEST_IMPL_FORMAT_C_STRING_AS_POINTER_(const char8_t);
355355
#endif

0 commit comments

Comments
 (0)