From 36af3d92ecb4148a74c14896f5b6a9dcea0c1700 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Mon, 12 Aug 2013 16:18:35 -0400 Subject: Windows build work: condition, mutex, thread, udp socket... --- node/Mutex.hpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'node/Mutex.hpp') diff --git a/node/Mutex.hpp b/node/Mutex.hpp index 493cc425..b0130293 100644 --- a/node/Mutex.hpp +++ b/node/Mutex.hpp @@ -28,9 +28,10 @@ #ifndef _ZT_MUTEX_HPP #define _ZT_MUTEX_HPP +#include "Constants.hpp" #include "NonCopyable.hpp" -#if defined(__APPLE__) || defined(__linux__) || defined(linux) || defined(__LINUX__) || defined(__linux) +#ifdef __UNIX_LIKE__ #include #include @@ -112,7 +113,7 @@ private: #endif // Apple / Linux -#ifdef _WIN32 +#ifdef __WINDOWS__ #include #include @@ -157,9 +158,6 @@ public: (const_cast (this))->unlock(); } - /** - * Uses C++ contexts and constructor/destructor to lock/unlock automatically - */ class Lock : NonCopyable { public: -- cgit v1.2.3