|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r80890 - trunk/libs/date_time/test/posix_time
From: andrey.semashev_at_[hidden]
Date: 2012-10-06 13:54:32
Author: andysem
Date: 2012-10-06 13:54:32 EDT (Sat, 06 Oct 2012)
New Revision: 80890
URL: http://svn.boost.org/trac/boost/changeset/80890
Log:
Fixed compilation with MinGW.
Text files modified:
trunk/libs/date_time/test/posix_time/testclock.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
Modified: trunk/libs/date_time/test/posix_time/testclock.cpp
==============================================================================
--- trunk/libs/date_time/test/posix_time/testclock.cpp (original)
+++ trunk/libs/date_time/test/posix_time/testclock.cpp 2012-10-06 13:54:32 EDT (Sat, 06 Oct 2012)
@@ -5,6 +5,7 @@
* Author: Jeff Garland
*/
+#include <boost/config.hpp>
#include "boost/date_time/posix_time/posix_time.hpp"
#include <iostream>
@@ -19,7 +20,7 @@
ptime tu = second_clock::universal_time();
std::cout << to_simple_string(tu) << std::endl;
-#if (defined(_POSIX_TIMERS))
+#if !defined(BOOST_WINDOWS) && defined(_POSIX_TIMERS)
for (int i=0; i < 3; ++i) {
ptime t2 = second_clock::local_time();
std::cout << to_simple_string(t2) << 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