1 // (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com)
2 // (C) Copyright 2003-2007 Jonathan Turkanis
3 // Distributed under the Boost Software License, Version 1.0. (See accompanying
4 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
6 // See http://www.boost.org/libs/iostreams for documentation.
8 // Adapted from http://www.boost.org/more/separate_compilation.html, by
11 #ifndef BOOST_IOSTREAMS_DETAIL_CONFIG_WIDE_STREAMS_HPP_INCLUDED
12 #define BOOST_IOSTREAMS_DETAIL_CONFIG_WIDE_STREAMS_HPP_INCLUDED
14 #include <boost/config.hpp>
15 #include <boost/detail/workaround.hpp>
22 //------------------Templated stream support----------------------------------//
24 // From boost/dynamic_bitset.hpp; thanks to Matthias Troyer for cray patch.
25 #ifndef BOOST_IOSTREAMS_NO_STREAM_TEMPLATES
26 # if defined(__STL_CONFIG_H) && \
27 !defined (__STL_USE_NEW_IOSTREAMS) && !defined(__crayx1) \
29 # define BOOST_IOSTREAMS_NO_STREAM_TEMPLATES
31 #endif // #ifndef BOOST_IOSTREAMS_NO_STREAM_TEMPLATES
33 //------------------Wide stream support---------------------------------------//
35 #ifndef BOOST_IOSTREAMS_NO_WIDE_STREAMS
36 # if defined(BOOST_IOSTREAMS_NO_STREAM_TEMPLATES) || \
37 defined (BOOST_NO_STD_WSTREAMBUF) && \
38 ( !defined(__MSL_CPP__) || defined(_MSL_NO_WCHART_CPP_SUPPORT) ) \
40 # define BOOST_IOSTREAMS_NO_WIDE_STREAMS
42 #endif // #ifndef BOOST_IOSTREAMS_NO_WIDE_STREAMS
44 //------------------Locale support--------------------------------------------//
46 #ifndef BOOST_IOSTREAMS_NO_LOCALE
47 # if defined(BOOST_NO_STD_LOCALE) && \
48 ( !defined(__MSL_CPP__) || defined(_MSL_NO_WCHART_CPP_SUPPORT) ) \
50 # define BOOST_IOSTREAMS_NO_LOCALE
52 #endif // #ifndef BOOST_IOSTREAMS_NO_LOCALE
54 #endif // #ifndef BOOST_IOSTREAMS_DETAIL_CONFIG_WIDE_STREAMS_HPP_INCLUDED