Maybe we could do something like this:
--- a/libstdc++-v3/include/pstl/parallel_backend_tbb.h +++ b/libstdc++-v3/include/pstl/parallel_backend_tbb.h @@ -15,6 +15,11 @@
#include "parallel_backend_utils.h"
+#ifndef TBB_SUPPRESS_DEPRECATED_MESSAGES +# define TBB_SUPPRESS_DEPRECATED_MESSAGES 1 +# define _GLIBCXX_UNDEF_SUPPRESS +#endif + // Bring in minimal required subset of Intel TBB #include <tbb/blocked_range.h> #include <tbb/parallel_for.h> @@ -25,6 +30,11 @@ #include <tbb/tbb_allocator.h> #include <tbb/task.h>
+#ifdef _GLIBCXX_UNDEF_SUPPRESS +# undef TBB_SUPPRESS_DEPRECATED_MESSAGES +# undef _GLIBCXX_UNDEF_SUPPRESS +#endif + #if TBB_INTERFACE_VERSION < 10000 # error Intel(R) Threading Building Blocks 2018 is required; older versions are not supported. #endif
Maybe we could do something like this:
--- a/libstdc+ +-v3/include/ pstl/parallel_ backend_ tbb.h +-v3/include/ pstl/parallel_ backend_ tbb.h
+++ b/libstdc+
@@ -15,6 +15,11 @@
#include "parallel_ backend_ utils.h"
+#ifndef TBB_SUPPRESS_ DEPRECATED_ MESSAGES DEPRECATED_ MESSAGES 1 UNDEF_SUPPRESS range.h> for.h> allocator. h>
+# define TBB_SUPPRESS_
+# define _GLIBCXX_
+#endif
+
// Bring in minimal required subset of Intel TBB
#include <tbb/blocked_
#include <tbb/parallel_
@@ -25,6 +30,11 @@
#include <tbb/tbb_
#include <tbb/task.h>
+#ifdef _GLIBCXX_ UNDEF_SUPPRESS DEPRECATED_ MESSAGES UNDEF_SUPPRESS VERSION < 10000
+# undef TBB_SUPPRESS_
+# undef _GLIBCXX_
+#endif
+
#if TBB_INTERFACE_
# error Intel(R) Threading Building Blocks 2018 is required; older versions are not supported.
#endif