From 07c8f29cbeb18fcd68b765afac3d1d9cbaa91f67 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 6 May 2017 02:26:14 +0200 Subject: Remove mingw32 missing-mutex hack. --- src/mutex.h | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/mutex.h b/src/mutex.h index 067a4db..eafebba 100644 --- a/src/mutex.h +++ b/src/mutex.h @@ -31,7 +31,8 @@ struct mutex_private_t; -class Mutex { +class Mutex +{ public: Mutex(); ~Mutex(); @@ -44,14 +45,8 @@ private: struct mutex_private_t* prv; }; -#if DG_PLATFORM == DG_PLATFORM_WINDOWS -// Hack: mingw doesn't have std::mutex -namespace std { - class mutex : public Mutex {}; -} -#endif - -class MutexAutolock { +class MutexAutolock +{ public: MutexAutolock(Mutex &mutex); ~MutexAutolock(); -- cgit v1.2.3