From 2d9f12a45f30ad0311f35252eaa7ae07d21efe7b Mon Sep 17 00:00:00 2001 From: p-wysocki Date: Sun, 29 Dec 2024 13:42:33 +0100 Subject: [PATCH] Clang Signed-off-by: p-wysocki --- src/inference/src/dev/core_impl.cpp | 4 ++-- src/inference/src/dev/threading/executor_manager.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/inference/src/dev/core_impl.cpp b/src/inference/src/dev/core_impl.cpp index 285fe3a3dd2695..43ec9326fccb64 100644 --- a/src/inference/src/dev/core_impl.cpp +++ b/src/inference/src/dev/core_impl.cpp @@ -3,8 +3,8 @@ // // https://developercommunity.visualstudio.com/t/Crash-SEGV-in-mutex-lock/10679088#T-N10680013 -#if defined(_WIN32) || defined(_WIN64) - #define _DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR +#if defined(_MSC_VER) +# define _DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR #endif #include "core_impl.hpp" diff --git a/src/inference/src/dev/threading/executor_manager.cpp b/src/inference/src/dev/threading/executor_manager.cpp index b873a7b5e84675..9e1365e9d66d70 100644 --- a/src/inference/src/dev/threading/executor_manager.cpp +++ b/src/inference/src/dev/threading/executor_manager.cpp @@ -3,8 +3,8 @@ // // https://developercommunity.visualstudio.com/t/Crash-SEGV-in-mutex-lock/10679088#T-N10680013 -#if defined(_WIN32) || defined(_WIN64) - #define _DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR +#if defined(_MSC_VER) +# define _DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR #endif #include "openvino/runtime/threading/executor_manager.hpp"