Skip to content

Commit 915b531

Browse files
authored
Merge pull request #75662 from ADKaster/disable-tbb-execution-on-newer-libstdcxx
[cxx-interop] Disable c++ execution header with libstdcxx versions >= 11
2 parents 14b8ab6 + 65cd7e4 commit 915b531

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
#include "cstddef"
2+
13
// C++17 and newer:
24

35
// <execution> includes tbb headers, which might not be installed.
46
// Only include <execution> if tbb is installed.
5-
#if __has_include("execution") && __has_include(<tbb/blocked_range.h>)
7+
#if __has_include("execution") && __has_include(<tbb/blocked_range.h>) && (!defined(_GLIBCXX_RELEASE) || (_GLIBCXX_RELEASE < 11))
68
#include "execution"
79
#endif

0 commit comments

Comments
 (0)