Merge branch 'frostbane-feature/gcc_std_thread' into develop

This commit is contained in:
Jinhao 2017-10-04 19:22:22 +08:00
commit 9b8cc1018e
2 changed files with 9 additions and 1 deletions

View File

@ -14,8 +14,12 @@
#include <cstdio>
// http://lxr.free-electrons.com/source/include/uapi/asm-generic/errno.h#L53
//#define EPROTO 71 /* Protocol error */
#ifdef _GLIBCXX_HAS_GTHREADS
# include <thread>
#else
#include <mingw.thread.h>
#include <mingw.mutex.h>
#endif
#else
#include <boost/thread/mutex.hpp>
#include <boost/thread/recursive_mutex.hpp>

View File

@ -6,7 +6,11 @@
#if defined(NANA_ENABLE_MINGW_STD_THREADS_WITH_MEGANZ)
#include <mingw.thread.h>
#ifdef _GLIBCXX_HAS_GTHREADS
# include <thread>
#else
# include <mingw.thread.h>
#endif
#else
#include <boost/thread.hpp>
namespace std