Skip to content

Commit

Permalink
M_PI(math.h) using fix & dirent.h is existed in MinGW (openvinotoolki…
Browse files Browse the repository at this point in the history
…t#22054)

* M_PI(math.h) using fix & dirent.h is existed in MinGW

* fix for clang codestyle
  • Loading branch information
testdrive-profiling-master authored Jan 10, 2024
1 parent 0cf87a1 commit 58af209
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion samples/cpp/common/utils/src/args_helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include <iostream>

#ifdef _WIN32
#if defined(_WIN32) && !defined(__MINGW32__) && !defined(__MINGW64__)
# include "samples/os/windows/w_dirent.h"
#else
# include <dirent.h>
Expand Down
6 changes: 4 additions & 2 deletions src/frontends/onnx/frontend/src/op/blackmanwindow.cpp
Original file line number Diff line number Diff line change
@@ -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 <math.h>

#include <memory>

#include "default_opset.hpp"
#include "utils/common.hpp"
#define _USE_MATH_DEFINES
#include <math.h>

OPENVINO_SUPPRESS_DEPRECATED_START
namespace ngraph {
Expand Down
6 changes: 4 additions & 2 deletions src/frontends/onnx/frontend/src/op/hammingwindow.cpp
Original file line number Diff line number Diff line change
@@ -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 <math.h>

#include <memory>

#include "default_opset.hpp"
#include "utils/common.hpp"
#define _USE_MATH_DEFINES
#include <math.h>

OPENVINO_SUPPRESS_DEPRECATED_START
namespace ngraph {
Expand Down
6 changes: 4 additions & 2 deletions src/frontends/onnx/frontend/src/op/hannwindow.cpp
Original file line number Diff line number Diff line change
@@ -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 <math.h>

#include <memory>

#include "default_opset.hpp"
#include "utils/common.hpp"
#define _USE_MATH_DEFINES
#include <math.h>

OPENVINO_SUPPRESS_DEPRECATED_START
namespace ngraph {
Expand Down

0 comments on commit 58af209

Please sign in to comment.