Subject: [Boost-bugs] [Boost C++ Libraries] #2881: Macros conflict: BOOST_HAS_FTIME and BOOST_NO_GETSYSTEMTIMEASFILETIME
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-03-23 19:19:18
#2881: Macros conflict: BOOST_HAS_FTIME and BOOST_NO_GETSYSTEMTIMEASFILETIME
--------------------------------------------------------------+-------------
Reporter: andysem | Owner: johnmaddock
Type: Bugs | Status: new
Milestone: Boost 1.39.0 | Component: config
Version: Boost 1.38.0 | Severity: Problem
Keywords: BOOST_HAS_FTIME BOOST_NO_GETSYSTEMTIMEASFILETIME |
--------------------------------------------------------------+-------------
There are two macros related to the WinAPI FILETIME-related functions:
BOOST_HAS_FTIME and BOOST_NO_GETSYSTEMTIMEASFILETIME. The first one is
documented as the one that is defined if the GetSystemTimeAsFileTime API
is available, whereas the second one is defined when it's not (while other
functions and the FILETIME type itself are available). On Windows Mobile
it is possible to get both these macros defined, which is quite
contradictory to the documentation.
I believe, docs and tests should be corrected so that BOOST_HAS_FTIME is
defined if the FILETIME type is available, and
BOOST_NO_GETSYSTEMTIMEASFILETIME is only defined when the
GetSystemTimeAsFileTime function is not available. A quick search shows
that these macros are only used in Boost.DateTime and in the described
meaning.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/2881> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:59 UTC