Boost logo

Boost-Commit :

From: DDeakins_at_[hidden]
Date: 2007-11-13 15:19:39


Author: davedeakins
Date: 2007-11-13 15:19:39 EST (Tue, 13 Nov 2007)
New Revision: 41069
URL: http://svn.boost.org/trac/boost/changeset/41069

Log:
Have the local_time and universal_time functions use GetSystemTime and SystemTimeToFileTime on Windows CE (since GetSystemTimeAsFileTime is not present)
Text files modified:
   trunk/boost/date_time/microsec_time_clock.hpp | 8 ++++++++
   1 files changed, 8 insertions(+), 0 deletions(-)

Modified: trunk/boost/date_time/microsec_time_clock.hpp
==============================================================================
--- trunk/boost/date_time/microsec_time_clock.hpp (original)
+++ trunk/boost/date_time/microsec_time_clock.hpp 2007-11-13 15:19:39 EST (Tue, 13 Nov 2007)
@@ -120,6 +120,10 @@
       FILETIME ft_utc;
       GetSystemTimeAsFileTime(&ft_utc);
       FileTimeToLocalFileTime(&ft_utc,&ft);
+ #elif defined(BOOST_NO_GETSYSTEMTIMEASFILETIME)
+ SYSTEMTIME st;
+ GetSystemTime( &st );
+ SystemTimeToFileTime( &st, &ft );
       #else
       GetSystemTimeAsFileTime(&ft);
       #endif
@@ -134,6 +138,10 @@
       FILETIME ft_utc;
       GetSystemTimeAsFileTime(&ft_utc);
       FileTimeToLocalFileTime(&ft_utc,&ft);
+ #elif defined(BOOST_NO_GETSYSTEMTIMEASFILETIME)
+ SYSTEMTIME st;
+ GetSystemTime( &st );
+ SystemTimeToFileTime( &st, &ft );
       #else
       GetSystemTimeAsFileTime(&ft);
       #endif


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