|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r86413 - trunk/libs/chrono/test/io
From: vicente.botet_at_[hidden]
Date: 2013-10-24 01:39:18
Author: viboes
Date: 2013-10-24 01:39:18 EDT (Thu, 24 Oct 2013)
New Revision: 86413
URL: http://svn.boost.org/trac/boost/changeset/86413
Log:
Chrono: avoid the use of gmtime_r on windows test to avoid compiler failure.
Text files modified:
trunk/libs/chrono/test/io/time_point_output.cpp | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
Modified: trunk/libs/chrono/test/io/time_point_output.cpp
==============================================================================
--- trunk/libs/chrono/test/io/time_point_output.cpp Wed Oct 23 22:17:13 2013 (r86412)
+++ trunk/libs/chrono/test/io/time_point_output.cpp 2013-10-24 01:39:18 EDT (Thu, 24 Oct 2013) (r86413)
@@ -183,7 +183,8 @@
#endif
-#if BOOST_CHRONO_VERSION == 2
+#if BOOST_CHRONO_INTERNAL_GMTIME
+#elif BOOST_CHRONO_VERSION == 2
void test_gmtime(std::time_t t)
{
std::cout << "t " << t << std::endl;
@@ -219,7 +220,8 @@
int main()
{
-#if BOOST_CHRONO_VERSION == 2
+#if BOOST_CHRONO_INTERNAL_GMTIME
+#elif BOOST_CHRONO_VERSION == 2
test_gmtime( 0 );
test_gmtime( -1 );
test_gmtime( +1 );
@@ -240,8 +242,6 @@
test_gmtime( 0 + 19LL*365*(3600 * 24)+ 4*(3600 * 24));
test_gmtime( 0 + 20LL*365*(3600 * 24) );
test_gmtime( 0 + 40LL*365*(3600 * 24) );
-
-
#endif
std::cout << "high_resolution_clock=" << std::endl;
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