Boost logo

Boost :

Subject: Re: [boost] [date_time] Patch for ticket #1740: date_time includes <windows.h>
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-10-10 17:36:00


Emil Mieilica wrote:
> date_time on Windows needs windows.h in order to have the definitions for FILETIME and GetSystemTimeAsFileTime and friends and does not use the same technique as other boost headers : if BOOST_USE_WINDOWS_H is defined include <windows.h> otherwise forward define functions as needed. In date_time is more difficult because it is a header_only library.
> Please find attached a patch to solve this issue and the test report of the library on the compiler I have at my disposal.
> I have taken precautions in order to ensure it will work on x64 Windows (please see comments related to the conversion between FILETIME and __int64) and I see no reason it should have changed for other platforms, but only testing will tell.

Can you attach this patch to the ticket so it doesn't get lost?

In Christ,
Steven Watanabe

Boost list run by bdawes at, gregod at, cpdaniel at, john at