diff --git a/src/inference/include/openvino/runtime/properties.hpp b/src/inference/include/openvino/runtime/properties.hpp index 9a159bbde7e..7ccee200f0b 100644 --- a/src/inference/include/openvino/runtime/properties.hpp +++ b/src/inference/include/openvino/runtime/properties.hpp @@ -373,6 +373,11 @@ static constexpr Property enable_profiling{"PERF_COUNT"}; */ namespace log { +#ifdef DEBUG +# define _OV_WAS_DEBUG DEBUG +# undef DEBUG +#endif + /** * @brief Enum to define possible log levels * @ingroup ov_runtime_cpp_prop_api @@ -433,6 +438,11 @@ inline std::istream& operator>>(std::istream& is, Level& level) { * @ingroup ov_runtime_cpp_prop_api */ static constexpr Property level{"LOG_LEVEL"}; + +#ifdef _OV_WAS_DEBUG +# define DEBUG _OV_WAS_DEBUG +# undef _OV_WAS_DEBUG +#endif } // namespace log /**