Porting to latest TBB on Windows.

This commit is contained in:
rnv 2019-08-30 18:48:46 +03:00
parent 03e125078a
commit 46f1ca0181
2 changed files with 17 additions and 0 deletions

View File

@ -395,6 +395,14 @@ void SMESHDS_GroupOnFilter::update() const
//================================================================================ //================================================================================
#ifdef WITH_TBB #ifdef WITH_TBB
#ifdef WIN32
// See https://docs.microsoft.com/en-gb/cpp/porting/modifying-winver-and-win32-winnt?view=vs-2019
// Windows 10 = 0x0A00
#define WINVER 0x0A00
#define _WIN32_WINNT 0x0A00
#endif
#include <tbb/parallel_for.h> #include <tbb/parallel_for.h>
#include "tbb/enumerable_thread_specific.h" #include "tbb/enumerable_thread_specific.h"

View File

@ -91,6 +91,15 @@
//#undef WITH_TBB //#undef WITH_TBB
#ifdef WITH_TBB #ifdef WITH_TBB
#ifdef WIN32
// See https://docs.microsoft.com/en-gb/cpp/porting/modifying-winver-and-win32-winnt?view=vs-2019
// Windows 10 = 0x0A00
#define WINVER 0x0A00
#define _WIN32_WINNT 0x0A00
#endif
#include <tbb/parallel_for.h> #include <tbb/parallel_for.h>
//#include <tbb/enumerable_thread_specific.h> //#include <tbb/enumerable_thread_specific.h>
#endif #endif