Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r49391 - sandbox/thread_safe_signals/trunk/boost/signals2/detail
From: fmhess_at_[hidden]
Date: 2008-10-19 11:56:28


Author: fmhess
Date: 2008-10-19 11:56:28 EDT (Sun, 19 Oct 2008)
New Revision: 49391
URL: http://svn.boost.org/trac/boost/changeset/49391

Log:
Fix compile error when targeting windows platforms before
NT 4.

Text files modified:
   sandbox/thread_safe_signals/trunk/boost/signals2/detail/lwm_win32_cs.hpp | 5 +++--
   1 files changed, 3 insertions(+), 2 deletions(-)

Modified: sandbox/thread_safe_signals/trunk/boost/signals2/detail/lwm_win32_cs.hpp
==============================================================================
--- sandbox/thread_safe_signals/trunk/boost/signals2/detail/lwm_win32_cs.hpp (original)
+++ sandbox/thread_safe_signals/trunk/boost/signals2/detail/lwm_win32_cs.hpp 2008-10-19 11:56:28 EDT (Sun, 19 Oct 2008)
@@ -81,12 +81,13 @@
     {
         EnterCriticalSection(&cs_);
     }
-
+// TryEnterCriticalSection only exists on Windows NT 4.0 and later
+#if defined(_WIN32_WINNT) && (_WIN32_WINNT >= 0x0400)
     bool try_lock()
     {
         return TryEnterCriticalSection(&cs_);
     }
-
+#endif
     void unlock()
     {
         LeaveCriticalSection(&cs_);


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk