1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- #ifndef BOOST_FORMAT_CONFIG_MACROS_HPP
- #define BOOST_FORMAT_CONFIG_MACROS_HPP
- #include <boost/config.hpp>
- #include <boost/detail/workaround.hpp>
- #if defined(BOOST_NO_LOCALE_ISDIGIT) || defined(BOOST_OVERLOAD_FOR_NON_CONST) \
- || defined(BOOST_IO_STD) || defined( BOOST_IO_NEEDS_USING_DECLARATION ) \
- || defined(BOOST_NO_TEMPLATE_STD_STREAM) \
- || defined(BOOST_FORMAT_STREAMBUF_DEFINED) || defined(BOOST_FORMAT_OSTREAM_DEFINED)
- #error "boost::format uses a local macro that is already defined."
- #endif
- #include <boost/format/detail/workarounds_gcc-2_95.hpp>
- #include <boost/format/detail/workarounds_stlport.hpp>
- #ifndef BOOST_IO_STD
- # define BOOST_IO_STD ::std::
- #endif
- #if defined(BOOST_NO_STD_LOCALE) || \
- ( BOOST_WORKAROUND(BOOST_BORLANDC, <= 0x564) \
- || BOOST_WORKAROUND(BOOST_BORLANDC, BOOST_TESTED_AT( 0x570 ) ) )
- #define BOOST_NO_LOCALE_ISDIGIT
- #endif
- #if BOOST_WORKAROUND(BOOST_BORLANDC, BOOST_TESTED_AT(0x570) ) || BOOST_WORKAROUND( BOOST_MSVC, BOOST_TESTED_AT(1300))
- #define BOOST_NO_OVERLOAD_FOR_NON_CONST
- #endif
- #ifdef BOOST_IO_NEEDS_USING_DECLARATION
- namespace boost {
- using std::char_traits;
- using std::basic_ostream;
- namespace io {
- using std::basic_ostream;
- namespace detail {
- using std::basic_ios;
- using std::basic_ostream;
- }
- }
- #if ! defined(BOOST_NO_STD_LOCALE)
- using std::locale;
- namespace io {
- using std::locale;
- namespace detail {
- using std::locale;
- }
- }
- #endif
- }
-
- #endif
- #if ! defined(BOOST_NO_STD_LOCALE)
- #include <locale>
- #endif
- namespace boost { namespace io { namespace detail {
- #if ! defined(BOOST_NO_STD_LOCALE)
- typedef BOOST_IO_STD locale locale_t;
- #else
- typedef int locale_t;
- #endif
- } } }
- #endif
|