mirror of
https://github.com/edubart/otclient.git
synced 2025-12-14 04:49:45 +01:00
Fix broken compilation in mingw32
This commit is contained in:
@@ -37,29 +37,4 @@
|
||||
#error "Sorry, you must enable C++0x to compile."
|
||||
#endif
|
||||
|
||||
// hack to enable std::thread on mingw32 4.6
|
||||
/*
|
||||
#if !defined(_GLIBCXX_HAS_GTHREADS) && defined(__GNUG__)
|
||||
#include <boost/thread/thread.hpp>
|
||||
#include <boost/thread/mutex.hpp>
|
||||
#include <boost/thread/recursive_mutex.hpp>
|
||||
#include <boost/thread/locks.hpp>
|
||||
#include <boost/thread/condition_variable.hpp>
|
||||
namespace std {
|
||||
using boost::thread;
|
||||
|
||||
using boost::mutex;
|
||||
using boost::timed_mutex;
|
||||
using boost::recursive_mutex;
|
||||
using boost::recursive_timed_mutex;
|
||||
|
||||
using boost::lock_guard;
|
||||
using boost::unique_lock;
|
||||
|
||||
using boost::condition_variable;
|
||||
using boost::condition_variable_any;
|
||||
}
|
||||
#endif
|
||||
*/
|
||||
|
||||
#endif
|
||||
|
||||
@@ -23,15 +23,12 @@
|
||||
#ifndef COROUTINE_H
|
||||
#define COROUTINE_H
|
||||
|
||||
#include <thread>
|
||||
#include <mutex>
|
||||
#include "thread.h"
|
||||
#include <functional>
|
||||
#include <condition_variable>
|
||||
#include <cassert>
|
||||
|
||||
namespace stdext {
|
||||
|
||||
//
|
||||
class coroutine
|
||||
{
|
||||
struct codata : public stdext::shared_object {
|
||||
|
||||
Reference in New Issue
Block a user