File tree 1 file changed +8
-4
lines changed
googletest/include/gtest/internal
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 282
282
283
283
// Detect C++ feature test macros as gracefully as possible.
284
284
// MSVC >= 19.15, Clang >= 3.4.1, and GCC >= 4.1.2 support feature test macros.
285
- #if GTEST_INTERNAL_CPLUSPLUS_LANG >= 202002L && \
286
- (!defined(__has_include) || GTEST_INTERNAL_HAS_INCLUDE(<version>))
287
- #include < version> // C++20 and later
288
- #elif (!defined(__has_include) || GTEST_INTERNAL_HAS_INCLUDE(<ciso646>))
285
+ //
286
+ // GCC15 warns that <ciso646> is deprecated in C++17 and suggests using
287
+ // <version> instead, even though <version> is not available in C++17 mode prior
288
+ // to GCC9.
289
+ #if GTEST_INTERNAL_CPLUSPLUS_LANG >= 202002L || \
290
+ GTEST_INTERNAL_HAS_INCLUDE (<version>)
291
+ #include < version> // C++20 or <version> support.
292
+ #else
289
293
#include < ciso646> // Pre-C++20
290
294
#endif
291
295
You can’t perform that action at this time.
0 commit comments