123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137 |
- #ifndef DATE_TIME_COMPILER_CONFIG_HPP___
- #define DATE_TIME_COMPILER_CONFIG_HPP___
- #include <cstdlib>
- #include <boost/config.hpp>
- #include <boost/detail/workaround.hpp>
- #include <boost/date_time/locale_config.hpp> //set up locale configurations
- #if defined(BOOST_HAS_GETTIMEOFDAY) || defined(BOOST_HAS_FTIME)
- #define BOOST_DATE_TIME_HAS_HIGH_PRECISION_CLOCK
- #endif
- #define BOOST_DATE_TIME_OPTIONAL_GREGORIAN_TYPES
- #if (defined(BOOST_NO_INCLASS_MEMBER_INITIALIZATION) || BOOST_WORKAROUND( BOOST_BORLANDC, BOOST_TESTED_AT(0x581) ) )
- #define BOOST_DATE_TIME_NO_MEMBER_INIT
- #endif
- #include <boost/cstdint.hpp>
- #if (!defined(INT64_C))
- #define INT64_C(value) int64_t(value)
- #endif
- #if defined(BOOST_BORLANDC) && defined(BOOST_BCB_WITH_RW_LIB)
- #define BOOST_DATE_TIME_NO_WISTREAM_ITERATOR
- #endif
- #if defined(BOOST_BORLANDC) && defined(BOOST_BCB_WITH_STLPORT)
- #include <locale>
- namespace std {
- using stlport::tolower;
- using stlport::ctype;
- using stlport::use_facet;
- }
- #endif
- #if (((defined(__GNUC__) && (__GNUC__ < 3)) || \
- (defined(_MSC_VER) && (_MSC_VER < 1300)) ) && \
- !defined(_STLP_OWN_IOSTREAMS) ) || \
- BOOST_WORKAROUND( BOOST_BORLANDC, BOOST_TESTED_AT(0x581) )
- #define BOOST_DATE_TIME_INCLUDE_LIMITED_HEADERS
- #endif
- #if defined(_MSC_VER)
- # define BOOST_DATE_TIME_UNREACHABLE_EXPRESSION(x) __assume(false)
- #elif !defined(BOOST_NO_UNREACHABLE_RETURN_DETECTION)
- # if defined(BOOST_NO_STDC_NAMESPACE)
- namespace std {
- using ::abort;
- }
- # endif
- # define BOOST_DATE_TIME_UNREACHABLE_EXPRESSION(x) std::abort()
- #else
- # define BOOST_DATE_TIME_UNREACHABLE_EXPRESSION(x) x
- #endif
- #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_DATE_TIME_DYN_LINK)
-
- # ifdef BOOST_DATE_TIME_SOURCE
- # define BOOST_DATE_TIME_DECL BOOST_SYMBOL_EXPORT
- # else
- # define BOOST_DATE_TIME_DECL BOOST_SYMBOL_IMPORT
- # endif
- #endif
- #ifndef BOOST_DATE_TIME_DECL
- # define BOOST_DATE_TIME_DECL
- #endif
- #if defined(BOOST_HAS_THREADS)
- # if defined(_MSC_VER) || defined(__MWERKS__) || defined(__MINGW32__) || defined(__BORLANDC__)
-
- # elif (!defined(__hpux) || (defined(__hpux) && defined(_REENTRANT)))
- # define BOOST_DATE_TIME_HAS_REENTRANT_STD_FUNCTIONS
- # endif
- #endif
- #if defined(BOOST_NO_CXX11_NULLPTR)
- # define BOOST_DATE_TIME_NULLPTR 0
- #else
- # define BOOST_DATE_TIME_NULLPTR nullptr
- #endif
- #endif
|