]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Suppress deprecation messages from <tbb/task.h> [PR101228]
authorJonathan Wakely <jwakely@redhat.com>
Thu, 29 Feb 2024 17:13:49 +0000 (17:13 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 19 Mar 2024 15:59:44 +0000 (15:59 +0000)
libstdc++-v3/ChangeLog:

PR libstdc++/101228
* include/pstl/parallel_backend_tbb.h (TBB_SUPPRESS_DEPRECATED_MESSAGES):
Define before including <tbb/task.h> then undef afterwards.

libstdc++-v3/include/pstl/parallel_backend_tbb.h

index 3ff55237bffad423c9ddbc4459526e2ed4126b0a..96e4b709fbee1539944405da06b06c8d955f6453 100644 (file)
 
 #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>
 #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