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.) 5 6 // See http://www.boost.org/libs/iostreams for documentation. 7 8 // Adapted from http://www.boost.org/more/separate_compilation.html, by 9 // John Maddock. 10 11 #ifndef BOOST_IOSTREAMS_DETAIL_CONFIG_WIDE_STREAMS_HPP_INCLUDED 12 #define BOOST_IOSTREAMS_DETAIL_CONFIG_WIDE_STREAMS_HPP_INCLUDED 13 14 #include <boost/config.hpp> 15 #include <boost/detail/workaround.hpp> 16 #include <cstddef> 17 18 #if defined(_MSC_VER) 19 # pragma once 20 #endif 21 22 //------------------Templated stream support----------------------------------// 23 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) \ 28 /**/ 29 # define BOOST_IOSTREAMS_NO_STREAM_TEMPLATES 30 # endif 31 #endif // #ifndef BOOST_IOSTREAMS_NO_STREAM_TEMPLATES 32 33 //------------------Wide stream support---------------------------------------// 34 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) ) \ 39 /**/ 40 # define BOOST_IOSTREAMS_NO_WIDE_STREAMS 41 # endif 42 #endif // #ifndef BOOST_IOSTREAMS_NO_WIDE_STREAMS 43 44 //------------------Locale support--------------------------------------------// 45 46 #ifndef BOOST_IOSTREAMS_NO_LOCALE 47 # if defined(BOOST_NO_STD_LOCALE) && \ 48 ( !defined(__MSL_CPP__) || defined(_MSL_NO_WCHART_CPP_SUPPORT) ) \ 49 /**/ 50 # define BOOST_IOSTREAMS_NO_LOCALE 51 # endif 52 #endif // #ifndef BOOST_IOSTREAMS_NO_LOCALE 53 54 #endif // #ifndef BOOST_IOSTREAMS_DETAIL_CONFIG_WIDE_STREAMS_HPP_INCLUDED 55