Skip to content

Commit d00fea8

Browse files
committed
Another try at #158, checking for libstdc++ rather than the compiler being used
1 parent a743780 commit d00fea8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/cpp2util.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@
131131
#include <iterator>
132132
#include <ranges>
133133
#include <algorithm>
134-
// GCC sometime after version 10 got a dependency on linking TBB if <execution> is
134+
// libstdc++ sometime after GCC 10 got a dependency on linking TBB if <execution> is
135135
// included, so let's not pull in that header in our "import std;" simulation mode
136-
#if defined(__clang__) || not defined(__GNUC__) || __GNUC__ < 11
136+
#if not defined(__GLIBCXX__) || __GLIBCXX__ < 20210101
137137
#include <execution>
138138
#endif
139139
#include <bit>

0 commit comments

Comments
 (0)