diff --git a/modules/core/include/opencv2/core/utility.hpp b/modules/core/include/opencv2/core/utility.hpp index 4174de8f5d..a9067403bb 100644 --- a/modules/core/include/opencv2/core/utility.hpp +++ b/modules/core/include/opencv2/core/utility.hpp @@ -58,7 +58,9 @@ #include +#if !defined(_M_CEE) #include // std::mutex, std::lock_guard +#endif namespace cv { @@ -674,8 +676,10 @@ void Mat::forEach_impl(const Functor& operation) { /////////////////////////// Synchronization Primitives /////////////////////////////// +#if !defined(_M_CEE) typedef std::recursive_mutex Mutex; typedef std::lock_guard AutoLock; +#endif // TLS interface class CV_EXPORTS TLSDataContainer