libstdc++: Suppress deprecation messages from <tbb/task.h> [PR101228]

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.
This commit is contained in:
Jonathan Wakely 2024-02-29 17:13:49 +00:00
parent 90788dd722
commit c608b57f77

View File

@ -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