Boost C++ Libraries: Ticket #2881: Macros conflict: BOOST_HAS_FTIME and BOOST_NO_GETSYSTEMTIMEASFILETIME https://svn.boost.org/trac10/ticket/2881 <p> 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 <a class="missing wiki">GetSystemTimeAsFileTime</a> 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. </p> <p> 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 <a class="missing wiki">GetSystemTimeAsFileTime</a> function is not available. A quick search shows that these macros are only used in Boost.<a class="missing wiki">DateTime</a> and in the described meaning. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2881 Trac 1.4.3 John Maddock Thu, 06 Aug 2009 16:36:38 GMT status changed https://svn.boost.org/trac10/ticket/2881#comment:1 https://svn.boost.org/trac10/ticket/2881#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> <p> Will fix: but when we're not in a run-up to release. </p> Ticket Marshall Clow Wed, 13 Jul 2011 14:14:11 GMT <link>https://svn.boost.org/trac10/ticket/2881#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2881#comment:2</guid> <description> <p> How about now? ;-) </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Wed, 13 Jul 2011 18:03:55 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/2881#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2881#comment:3</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/73058" title="Document BOOST_HAS_GETSYSTEMTIMEASFILETIME, add test case, and change ...">[73058]</a>) Document BOOST_HAS_GETSYSTEMTIMEASFILETIME, add test case, and change test for BOOST_HAS_FTIME. Refs <a class="new ticket" href="https://svn.boost.org/trac10/ticket/2881" title="#2881: Bugs: Macros conflict: BOOST_HAS_FTIME and BOOST_NO_GETSYSTEMTIMEASFILETIME (new)">#2881</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Wed, 13 Jul 2011 18:08:22 GMT</pubDate> <title>owner, status, component changed https://svn.boost.org/trac10/ticket/2881#comment:4 https://svn.boost.org/trac10/ticket/2881#comment:4 <ul> <li><strong>owner</strong> changed from <span class="trac-author">John Maddock</span> to <span class="trac-author">az_sw_dude</span> </li> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">new</span> </li> <li><strong>component</strong> <span class="trac-field-old">config</span> → <span class="trac-field-new">date_time</span> </li> </ul> <p> Fixed in Boost.Config Trunk, but.... note that <a class="missing wiki">DateTime</a>'s use of these macros seems to be in a mess, and frankly BOOST_HAS_GETSYSTEMTIMEASFILETIME could be probably be removed altogether. Reassigning. </p> Ticket