From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2006-09-24 13:52:29
> You can reverse the inclusion order to make it work.
But this is very annoying since headers from every boost library using
date-time would have also those dependencies.
> WIN32_LEAN_AND_MEAN will also prevent windows.h from including
> winsock.h. The asio headers already include the following
> construct to #define WIN32_LEAN_AND_MEAN:
> # if !defined(BOOST_ASIO_NO_WIN32_LEAN_AND_MEAN)
> # if !defined(WIN32_LEAN_AND_MEAN)
> # define WIN32_LEAN_AND_MEAN
> # endif // !defined(WIN32_LEAN_AND_MEAN)
> # endif // !defined(BOOST_ASIO_NO_WIN32_LEAN_AND_MEAN)
> Perhaps something similar should be added to date_time, since
> it does not need winsock.h?
Seems the most reasonable answer, if lean and mean configuration has all
the necessary headers Boost.DateTime needs.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk