Merge branch 'hotfix-1.3' of https://github.com/Pr0curo/nana into Pr0curo-hotfix-1.3
This commit is contained in:
@@ -8,12 +8,12 @@
|
||||
#include <windows.h>
|
||||
#include <mutex>
|
||||
#include <condition_variable>
|
||||
#include <thread>
|
||||
#include <pthread.h>
|
||||
//#include <thread>
|
||||
//#include <pthread.h>
|
||||
#include <errno.h>
|
||||
#include <cstdio>
|
||||
// http://lxr.free-electrons.com/source/include/uapi/asm-generic/errno.h#L53
|
||||
#define EPROTO 71 /* Protocol error */
|
||||
//#define EPROTO 71 /* Protocol error */
|
||||
#include <mingw.thread.h>
|
||||
#include <mingw.mutex.h>
|
||||
#else
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
#if defined(STD_THREAD_NOT_SUPPORTED)
|
||||
|
||||
#if defined(NANA_ENABLE_MINGW_STD_THREADS_WITH_MEGANZ)
|
||||
|
||||
#include <mingw.thread.h>
|
||||
#else
|
||||
#include <boost/thread.hpp>
|
||||
@@ -13,5 +14,11 @@ namespace std
|
||||
typedef boost::thread thread;
|
||||
}
|
||||
#endif // (NANA_ENABLE_MINGW_STD_THREADS_WITH_MEGANZ)
|
||||
|
||||
#else
|
||||
|
||||
#include <thread>
|
||||
|
||||
#endif // (STD_THREAD_NOT_SUPPORTED)
|
||||
|
||||
#endif // NANA_STD_THREAD_HPP
|
||||
|
||||
Reference in New Issue
Block a user