Skip to content

Commit

Permalink
Merge pull request #92 from Tencent/master
Browse files Browse the repository at this point in the history
Fix ncnn error in MinGW compilation of windows system (#1645)
  • Loading branch information
qaz734913414 authored Mar 24, 2020
2 parents ec40b4d + 5ea683f commit 4f8726a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/platform.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#cmakedefine01 NCNN_REQUANT
#cmakedefine01 NCNN_AVX2

#ifdef _WIN32
#if (defined _WIN32 && !(defined __MINGW32__))
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <process.h>
Expand All @@ -39,7 +39,7 @@

namespace ncnn {

#ifdef _WIN32
#if (defined _WIN32 && !(defined __MINGW32__))
class Mutex
{
public:
Expand Down Expand Up @@ -75,7 +75,7 @@ private:
Mutex& mutex;
};

#if _WIN32
#if (defined _WIN32 && !(defined __MINGW32__))
class ConditionVariable
{
public:
Expand All @@ -101,7 +101,7 @@ private:
};
#endif // _WIN32

#if _WIN32
#if (defined _WIN32 && !(defined __MINGW32__))
static unsigned __stdcall start_wrapper(void* args);
class Thread
{
Expand Down

0 comments on commit 4f8726a

Please sign in to comment.