aboutsummaryrefslogtreecommitdiff
path: root/src/threading/event.h
diff options
context:
space:
mode:
authorBlockMen <nmuelll@web.de>2015-12-11 22:40:37 +0100
committerBlockMen <nmuelll@web.de>2015-12-11 23:08:14 +0100
commitaed10765f208aedf324128972c74ecc033bb5035 (patch)
tree6be321006de0a40ae2450bd2ccca3b4af0de580f /src/threading/event.h
parent6133b2bc4518d0b7cf5836fef0d7317f677bf8e0 (diff)
downloadminetest-aed10765f208aedf324128972c74ecc033bb5035.tar.gz
minetest-aed10765f208aedf324128972c74ecc033bb5035.tar.bz2
minetest-aed10765f208aedf324128972c74ecc033bb5035.zip
Fix events on Windows
Diffstat (limited to 'src/threading/event.h')
-rw-r--r--src/threading/event.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/threading/event.h b/src/threading/event.h
index ea087e53f..dba3ddb4c 100644
--- a/src/threading/event.h
+++ b/src/threading/event.h
@@ -30,7 +30,10 @@ DEALINGS IN THE SOFTWARE.
#include <condition_variable>
#include "threading/mutex.h"
#elif defined(_WIN32)
- #include <windef.h>
+ #ifndef WIN32_LEAN_AND_MEAN
+ #define WIN32_LEAN_AND_MEAN
+ #endif
+ #include <windows.h>
#else
#include <pthread.h>
#endif
@@ -66,4 +69,3 @@ private:
};
#endif
-