From 94cb89dd6b0456c06a3540a01fc98c9eb8c8047f Mon Sep 17 00:00:00 2001 From: CPunch Date: Wed, 19 Aug 2020 15:42:44 -0500 Subject: [PATCH] fixed warnings for windows mingw --- src/CNProtocol.hpp | 2 +- src/CNShared.cpp | 2 +- src/main.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/CNProtocol.hpp b/src/CNProtocol.hpp index af33ed1..5887384 100644 --- a/src/CNProtocol.hpp +++ b/src/CNProtocol.hpp @@ -39,7 +39,7 @@ #include #include -#ifdef __MINGW32__ +#if defined(__MINGW32__) && !defined(_GLIBCXX_HAS_GTHREADS) #include "mingw/mingw.mutex.h" #else #include diff --git a/src/CNShared.cpp b/src/CNShared.cpp index df2130a..1682ade 100644 --- a/src/CNShared.cpp +++ b/src/CNShared.cpp @@ -1,6 +1,6 @@ #include "CNShared.hpp" -#ifdef __MINGW32__ +#if defined(__MINGW32__) && !defined(_GLIBCXX_HAS_GTHREADS) #include "mingw/mingw.mutex.h" #else #include diff --git a/src/main.cpp b/src/main.cpp index ec6460d..ca15dc3 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -5,7 +5,7 @@ #include "settings.hpp" -#ifdef __MINGW32__ +#if defined(__MINGW32__) && !defined(_GLIBCXX_HAS_GTHREADS) #include "mingw/mingw.thread.h" #else #include