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