From 58af2091206d73f1366ccdb3071a6775731ce6af Mon Sep 17 00:00:00 2001 From: HyungKi Jeong <68764729+testdrive-profiling-master@users.noreply.github.com> Date: Wed, 10 Jan 2024 18:23:57 +0900 Subject: [PATCH] M_PI(math.h) using fix & dirent.h is existed in MinGW (#22054) * M_PI(math.h) using fix & dirent.h is existed in MinGW * fix for clang codestyle --- samples/cpp/common/utils/src/args_helper.cpp | 2 +- src/frontends/onnx/frontend/src/op/blackmanwindow.cpp | 6 ++++-- src/frontends/onnx/frontend/src/op/hammingwindow.cpp | 6 ++++-- src/frontends/onnx/frontend/src/op/hannwindow.cpp | 6 ++++-- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/samples/cpp/common/utils/src/args_helper.cpp b/samples/cpp/common/utils/src/args_helper.cpp index c1e8d773d7d4f6..a67440c2903be3 100644 --- a/samples/cpp/common/utils/src/args_helper.cpp +++ b/samples/cpp/common/utils/src/args_helper.cpp @@ -7,7 +7,7 @@ #include -#ifdef _WIN32 +#if defined(_WIN32) && !defined(__MINGW32__) && !defined(__MINGW64__) # include "samples/os/windows/w_dirent.h" #else # include diff --git a/src/frontends/onnx/frontend/src/op/blackmanwindow.cpp b/src/frontends/onnx/frontend/src/op/blackmanwindow.cpp index 76df0691a45149..d4bb144725dbfe 100644 --- a/src/frontends/onnx/frontend/src/op/blackmanwindow.cpp +++ b/src/frontends/onnx/frontend/src/op/blackmanwindow.cpp @@ -1,14 +1,16 @@ // Copyright (C) 2018-2023 Intel Corporation // SPDX-License-Identifier: Apache-2.0 +#define _USE_MATH_DEFINES + #include "op/blackmanwindow.hpp" +#include + #include #include "default_opset.hpp" #include "utils/common.hpp" -#define _USE_MATH_DEFINES -#include OPENVINO_SUPPRESS_DEPRECATED_START namespace ngraph { diff --git a/src/frontends/onnx/frontend/src/op/hammingwindow.cpp b/src/frontends/onnx/frontend/src/op/hammingwindow.cpp index c8e1709d467853..702e0695422037 100644 --- a/src/frontends/onnx/frontend/src/op/hammingwindow.cpp +++ b/src/frontends/onnx/frontend/src/op/hammingwindow.cpp @@ -1,14 +1,16 @@ // Copyright (C) 2018-2023 Intel Corporation // SPDX-License-Identifier: Apache-2.0 +#define _USE_MATH_DEFINES + #include "op/hammingwindow.hpp" +#include + #include #include "default_opset.hpp" #include "utils/common.hpp" -#define _USE_MATH_DEFINES -#include OPENVINO_SUPPRESS_DEPRECATED_START namespace ngraph { diff --git a/src/frontends/onnx/frontend/src/op/hannwindow.cpp b/src/frontends/onnx/frontend/src/op/hannwindow.cpp index 4b97458ad207ce..47911bf1771c36 100644 --- a/src/frontends/onnx/frontend/src/op/hannwindow.cpp +++ b/src/frontends/onnx/frontend/src/op/hannwindow.cpp @@ -1,14 +1,16 @@ // Copyright (C) 2018-2023 Intel Corporation // SPDX-License-Identifier: Apache-2.0 +#define _USE_MATH_DEFINES + #include "op/hannwindow.hpp" +#include + #include #include "default_opset.hpp" #include "utils/common.hpp" -#define _USE_MATH_DEFINES -#include OPENVINO_SUPPRESS_DEPRECATED_START namespace ngraph {