diff options
Diffstat (limited to 'src/mutex.h')
-rw-r--r-- | src/mutex.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mutex.h b/src/mutex.h index 7e31296..067a4db 100644 --- a/src/mutex.h +++ b/src/mutex.h @@ -27,6 +27,8 @@ */ #pragma once +#include "platform.h" + struct mutex_private_t; class Mutex { @@ -42,7 +44,7 @@ private: struct mutex_private_t* prv; }; -#ifdef WIN32 +#if DG_PLATFORM == DG_PLATFORM_WINDOWS // Hack: mingw doesn't have std::mutex namespace std { class mutex : public Mutex {}; |