Skip to content

Commit e1caa5f

Browse files
authored
Fix deprecation warning about <ciso646> header (#1725)
Signed-off-by: Isaev, Ilya <[email protected]>
1 parent e0edf7a commit e1caa5f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/common/doctest.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Modifications Copyright (c) 2020-2023 Intel Corporation
2+
Modifications Copyright (c) 2020-2025 Intel Corporation
33
Modifications Licensed under the Apache License, Version 2.0;
44
You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
55
*/
@@ -509,7 +509,11 @@ DOCTEST_GCC_SUPPRESS_WARNING_POP
509509
// https://github.com/doctest/doctest/issues/126
510510
// https://github.com/doctest/doctest/issues/356
511511
#if DOCTEST_CLANG
512+
#if DOCTEST_CPLUSPLUS >= 201703L && __has_include(<version>)
513+
#include <version>
514+
#else
512515
#include <ciso646>
516+
#endif
513517
#endif // clang
514518

515519
#ifdef _LIBCPP_VERSION

0 commit comments

Comments
 (0)