summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2017-05-06 02:26:14 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2017-05-06 02:26:14 +0200
commit07c8f29cbeb18fcd68b765afac3d1d9cbaa91f67 (patch)
tree7a5c6f3d564bda26311d969b9e32822b8e7b8f58
parent2aef4762dfadeac32d549a6cf95bae96247b4a27 (diff)
Remove mingw32 missing-mutex hack.
-rw-r--r--src/mutex.h13
1 files changed, 4 insertions, 9 deletions
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();