From 40959a410ce74f1691fac2f5c62b48b31c697eb3 Mon Sep 17 00:00:00 2001 From: Ilya Churaev Date: Tue, 3 Jan 2023 16:01:35 +0400 Subject: [PATCH] Undef DEBUG macro for log level property (#14897) * Undef DEBUG macro for log level property * Renamed define --- src/inference/include/openvino/runtime/properties.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 /**