locale_config.hpp 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. #ifndef DATE_TIME_LOCALE_CONFIG_HPP___
  2. #define DATE_TIME_LOCALE_CONFIG_HPP___
  3. /* Copyright (c) 2002-2006 CrystalClear Software, Inc.
  4. * Use, modification and distribution is subject to the
  5. * Boost Software License, Version 1.0. (See accompanying
  6. * file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
  7. * Author: Jeff Garland
  8. * $Date$
  9. */
  10. // This file configures whether the library will support locales and hence
  11. // iostream based i/o. Even if a compiler has some support for locales,
  12. // any failure to be compatible gets the compiler on the exclusion list.
  13. //
  14. // At the moment this is defined for MSVC 6 and any compiler that
  15. // defines BOOST_NO_STD_LOCALE (gcc 2.95.x)
  16. #include "boost/config.hpp" //sets BOOST_NO_STD_LOCALE
  17. #include "boost/detail/workaround.hpp"
  18. //This file basically becomes a noop if locales are not properly supported
  19. #if (defined(BOOST_NO_STD_LOCALE) \
  20. || (BOOST_WORKAROUND( BOOST_MSVC, < 1300)) \
  21. || (BOOST_WORKAROUND( __BORLANDC__, BOOST_TESTED_AT( 0x581 )) ) \
  22. || (BOOST_WORKAROUND( BOOST_XLCPP_ZOS, BOOST_TESTED_AT( 0x42010000 )) ) /* <cctype> "shadows" the locale enabled overloads from <locale> */ \
  23. )
  24. #define BOOST_DATE_TIME_NO_LOCALE
  25. #endif
  26. #endif