Skip to content
Snippets Groups Projects
Commit 0b0a5602 authored by Xavier Valls Pla's avatar Xavier Valls Pla
Browse files

set TBB_PREVIEW_GLOBAL_CONTROL for older tbb versions

parent bbed601b
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@
#include <mutex>
#include <thread>
#include "tbb/task_arena.h"
#define TBB_PREVIEW_GLOBAL_CONTROL 1 // required for TBB versions preceding 2019_U4
#include "tbb/global_control.h"
//////////////////////////////////////////////////////////////////////////
......
......@@ -4,6 +4,8 @@
#pragma GCC diagnostic ignored "-Wshadow"
#endif
#include "tbb/tbb.h"
#define TBB_PREVIEW_GLOBAL_CONTROL 1 // required for TBB versions preceding 2019_U4
#include "tbb/global_control.h"
#if !defined(_MSC_VER)
#pragma GCC diagnostic pop
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment