Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenlib/BLI_task.hh
| Show All 16 Lines | |||||
| #pragma once | #pragma once | ||||
| /** \file | /** \file | ||||
| * \ingroup bli | * \ingroup bli | ||||
| */ | */ | ||||
| #ifdef WITH_TBB | #ifdef WITH_TBB | ||||
| /* Quiet top level deprecation message, unrelated to API usage here. */ | /* Quiet top level deprecation message, unrelated to API usage here. */ | ||||
| # define TBB_SUPPRESS_DEPRECATED_MESSAGES 1 | |||||
| # if defined(WIN32) && !defined(NOMINMAX) | # if defined(WIN32) && !defined(NOMINMAX) | ||||
| /* TBB includes Windows.h which will define min/max macros causing issues | /* TBB includes Windows.h which will define min/max macros causing issues | ||||
| * when we try to use std::min and std::max later on. */ | * when we try to use std::min and std::max later on. */ | ||||
| # define NOMINMAX | # define NOMINMAX | ||||
| # define TBB_MIN_MAX_CLEANUP | # define TBB_MIN_MAX_CLEANUP | ||||
| # endif | # endif | ||||
| # include <tbb/tbb.h> | # include <tbb/tbb.h> | ||||
| # ifdef WIN32 | # ifdef WIN32 | ||||
| ▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines | |||||