浏览代码

Fix build

Ivan Savenko 7 月之前
父节点
当前提交
4e440e19a7
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      Global.h

+ 5 - 0
Global.h

@@ -145,6 +145,11 @@ static_assert(sizeof(bool) == 1, "Bool needs to be 1 byte in size.");
 #include <variant>
 #include <variant>
 #include <vector>
 #include <vector>
 
 
+// VCMI requires features that were added to TBB 2021.4
+// However, until TBB 2021.7 they were only available with this define
+// For versions TBB 2021.7 and later this define is not required
+#define TBB_PREVIEW_TASK_GROUP_EXTENSIONS 1
+
 //The only available version is 3, as of Boost 1.50
 //The only available version is 3, as of Boost 1.50
 #include <boost/version.hpp>
 #include <boost/version.hpp>