Skip to content

Commit

Permalink
Put mingw on gcc code path (openvinotoolkit#16101)
Browse files Browse the repository at this point in the history
* Supported mingw-w64

* Supported mingw-w64

* Supported mingw-w64
  • Loading branch information
ilya-lavrenov authored and dood-apo committed Aug 24, 2023
1 parent bfe4ff3 commit 5e61e21
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 14 deletions.
2 changes: 1 addition & 1 deletion legacy/include/legacy/ie_layers.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "ie_common.h"
#include "ie_data.h"

#ifdef _WIN32
#ifdef _MSC_VER
# define _IE_SUPPRESS_DEPRECATED_START_MSVC IE_SUPPRESS_DEPRECATED_START
# define _IE_SUPPRESS_DEPRECATED_END_MSVC IE_SUPPRESS_DEPRECATED_END
#else
Expand Down
7 changes: 0 additions & 7 deletions src/gna_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,6 @@ using namespace ov::intel_gna::memory;
using namespace ov::intel_gna::frontend;
using namespace ov::intel_gna::pre_post_processing;

namespace InferenceEngine {
template <>
InferenceEngine::TBlob<gna_compound_bias_t, std::enable_if<true, void>>::~TBlob() {
free();
}
} // namespace InferenceEngine

template <typename T, typename U>
void GNAPlugin::copyInputData(T* dst,
const U* src,
Expand Down
2 changes: 1 addition & 1 deletion src/log/debug.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#ifdef __PRETTY_FUNCTION__
# undef __PRETTY_FUNCTION__
#endif
#ifdef _WIN32
#if defined(_WIN32) && !defined(__GNUC__)
# define __PRETTY_FUNCTION__ __FUNCSIG__
#else
# define __PRETTY_FUNCTION__ __FUNCTION__
Expand Down
6 changes: 3 additions & 3 deletions tests/deprecated/helpers/tests_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
# ifndef _WINSOCK2API_
# define _WINSOCK2API_
# endif
# include <WinSock2.h>
# include <Windows.h>
# include "Psapi.h"
# include <winsock2.h>
# include <windows.h>
# include "psapi.h"
#endif

static size_t parseLine(char* line) {
Expand Down
2 changes: 2 additions & 0 deletions tests/deprecated/helpers/tests_common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
#pragma once

// avoiding clash of the "max" macro with std::max
#ifndef NOMINMAX
#define NOMINMAX
#endif

#include <algorithm>
#include <cmath>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ void readAllFile(const std::string& string_file_name, void* buffer, size_t maxSi
std::string file_name = string_file_name;
#endif

inputFile.open(file_name, std::ios::binary | std::ios::in);
inputFile.open(file_name.c_str(), std::ios::binary | std::ios::in);
if (!inputFile.is_open())
IE_THROW() << "cannot open file " << string_file_name;
if (!inputFile.read(reinterpret_cast<char*>(buffer), maxSize)) {
Expand Down
2 changes: 1 addition & 1 deletion tests/deprecated/unit/engines/gna/gna_mock_api.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <gna2-inference-api.h>
#include <gna2-model-export-api.h>

#if defined(_WIN32)
#if defined(_WIN32) || defined(__CYGWIN__)
#ifdef libGNAStubs_EXPORTS
#define GNA_STUBS_EXPORT __declspec(dllexport)
#else
Expand Down

0 comments on commit 5e61e21

Please sign in to comment.