Boost logo

Boost :

From: Lapshin, Kirill (Kirill.Lapshin_at_[hidden])
Date: 2003-10-30 16:07:57


Hello,

On CygWin GCC 3.3.1 date_time library compiles with many stdint related
warnings. Offending code is in
boost/date_time/posix_time/posix_time_config.hpp, here is the snippet:

                //force the definition of INT64_C macro used in
posix_time_system
                #ifndef __STDC_CONSTANT_MACROS
                #define __STDC_CONSTANT_MACROS
                # if __GNUC__ >= 2
                # undef BOOST_HAS_STDINT_H
                # endif
                #endif
                #include "boost/cstdint.hpp"

Undefining BOOST_HAS_STDINT_H leads to numerous macros redefinition warnings
(essentially macros defined in stdint, are redefined in boost/cstdint).

This behavior observed on latest CVS. On 1.30.02 situation is even worth -
library fails to compile because there is no boost::uint32_t type defined
(the error triggered in microsec_time_clock.hpp).

--Kirill

___________
Kirill Lapshin
410-468-3625



Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk