From 327ec13e475e1418ff158aa1875d5e73ad76eebb Mon Sep 17 00:00:00 2001 From: Jeff Garland Date: Wed, 30 Jun 2004 00:47:47 +0000 Subject: [PATCH] enable the experimental gregorian duration types [SVN r23276] --- include/boost/date_time/compiler_config.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/boost/date_time/compiler_config.hpp b/include/boost/date_time/compiler_config.hpp index 1b8c8f1..1041892 100644 --- a/include/boost/date_time/compiler_config.hpp +++ b/include/boost/date_time/compiler_config.hpp @@ -26,6 +26,12 @@ #define BOOST_DATE_TIME_NO_MEMBER_INIT #endif +//Include extensions to date_duration - comment out to remove this feature +#define BOOST_DATE_TIME_OPTIONAL_GREGORIAN_TYPES +//these extensions are known to cause problems with gcc295 +#if defined(__GNUC__) && (__GNUC__ < 3) +#undef BOOST_DATE_TIME_OPTIONAL_GREGORIAN_TYPES +#endif // include these types before we try to re-define them #include "boost/cstdint.hpp"