|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r71533 - in trunk: boost/config/compiler boost/date_time libs/thread/src/win32
From: marshall_at_[hidden]
Date: 2011-04-27 11:51:09
Author: marshall
Date: 2011-04-27 11:51:07 EDT (Wed, 27 Apr 2011)
New Revision: 71533
URL: http://svn.boost.org/trac/boost/changeset/71533
Log:
Renamed BOOST_NO_THREADEX -> BOOST_HAS_THREADEX and BOOST_NO_GETSYSTEMTIMEASFILETIME --> BOOST_HAS_GETSYSTEMTIMEASFILETIME - Refs #1988
Text files modified:
trunk/boost/config/compiler/visualc.hpp | 8 ++++++--
trunk/boost/date_time/filetime_functions.hpp | 6 +++---
trunk/libs/thread/src/win32/thread.cpp | 2 +-
3 files changed, 10 insertions(+), 6 deletions(-)
Modified: trunk/boost/config/compiler/visualc.hpp
==============================================================================
--- trunk/boost/config/compiler/visualc.hpp (original)
+++ trunk/boost/config/compiler/visualc.hpp 2011-04-27 11:51:07 EDT (Wed, 27 Apr 2011)
@@ -129,11 +129,15 @@
#endif
#if defined(_WIN32_WCE) || defined(UNDER_CE)
-# define BOOST_NO_THREADEX
-# define BOOST_NO_GETSYSTEMTIMEASFILETIME
# define BOOST_NO_SWPRINTF
#endif
+// we have ThreadEx or GetSystemTimeAsFileTime unless we're running WindowsCE
+#if !defined(_WIN32_WCE) && !defined(UNDER_CE)
+# define BOOST_HAS_THREADEX
+# define BOOST_HAS_GETSYSTEMTIMEASFILETIME
+#endif
+
//
// check for exception handling support:
#if !defined(_CPPUNWIND) && !defined(BOOST_NO_EXCEPTIONS)
Modified: trunk/boost/date_time/filetime_functions.hpp
==============================================================================
--- trunk/boost/date_time/filetime_functions.hpp (original)
+++ trunk/boost/date_time/filetime_functions.hpp 2011-04-27 11:51:07 EDT (Wed, 27 Apr 2011)
@@ -73,12 +73,12 @@
file_time ft_utc;
GetSystemTimeAsFileTime(&ft_utc);
FileTimeToLocalFileTime(&ft_utc, &ft);
-#elif defined(BOOST_NO_GETSYSTEMTIMEASFILETIME)
+#elif defined(BOOST_HAS_GETSYSTEMTIMEASFILETIME)
+ GetSystemTimeAsFileTime(&ft);
+#else
system_time st;
GetSystemTime(&st);
SystemTimeToFileTime(&st, &ft);
-#else
- GetSystemTimeAsFileTime(&ft);
#endif
}
Modified: trunk/libs/thread/src/win32/thread.cpp
==============================================================================
--- trunk/libs/thread/src/win32/thread.cpp (original)
+++ trunk/libs/thread/src/win32/thread.cpp 2011-04-27 11:51:07 EDT (Wed, 27 Apr 2011)
@@ -67,7 +67,7 @@
boost::throw_exception(thread_resource_error());
}
-#ifdef BOOST_NO_THREADEX
+#ifndef BOOST_HAS_THREADEX
// Windows CE doesn't define _beginthreadex
struct ThreadProxyData
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