From 46f1ca0181a2ab53d7d3b3f7e7d830206132e013 Mon Sep 17 00:00:00 2001 From: rnv Date: Fri, 30 Aug 2019 18:48:46 +0300 Subject: [PATCH] Porting to latest TBB on Windows. --- src/SMESHDS/SMESHDS_GroupOnFilter.cxx | 8 ++++++++ src/StdMeshers/StdMeshers_Cartesian_3D.cxx | 9 +++++++++ 2 files changed, 17 insertions(+) diff --git a/src/SMESHDS/SMESHDS_GroupOnFilter.cxx b/src/SMESHDS/SMESHDS_GroupOnFilter.cxx index 7e1c79097..93d3796ea 100644 --- a/src/SMESHDS/SMESHDS_GroupOnFilter.cxx +++ b/src/SMESHDS/SMESHDS_GroupOnFilter.cxx @@ -395,6 +395,14 @@ void SMESHDS_GroupOnFilter::update() const //================================================================================ #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 #include "tbb/enumerable_thread_specific.h" diff --git a/src/StdMeshers/StdMeshers_Cartesian_3D.cxx b/src/StdMeshers/StdMeshers_Cartesian_3D.cxx index f54caa262..85a984c30 100644 --- a/src/StdMeshers/StdMeshers_Cartesian_3D.cxx +++ b/src/StdMeshers/StdMeshers_Cartesian_3D.cxx @@ -91,6 +91,15 @@ //#undef 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 //#include #endif -- 2.39.2