| 1 | // (C) Copyright Jonathan Turkanis 2003. |
|---|
| 2 | // Distributed under the Boost Software License, Version 1.0. (See accompanying |
|---|
| 3 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.) |
|---|
| 4 | |
|---|
| 5 | // See http://www.boost.org/libs/iostreams for documentation. |
|---|
| 6 | |
|---|
| 7 | // Adapted from http://www.boost.org/more/separate_compilation.html, by |
|---|
| 8 | // John Maddock. |
|---|
| 9 | |
|---|
| 10 | #ifndef BOOST_IOSTREAMS_DETAIL_CONFIG_WIDE_STREAMS_HPP_INCLUDED |
|---|
| 11 | #define BOOST_IOSTREAMS_DETAIL_CONFIG_WIDE_STREAMS_HPP_INCLUDED |
|---|
| 12 | |
|---|
| 13 | #include <boost/config.hpp> |
|---|
| 14 | #include <boost/detail/workaround.hpp> |
|---|
| 15 | #include <cstddef> |
|---|
| 16 | |
|---|
| 17 | #if defined(_MSC_VER) && (_MSC_VER >= 1020) |
|---|
| 18 | # pragma once |
|---|
| 19 | #endif |
|---|
| 20 | |
|---|
| 21 | //------------------Templated stream support----------------------------------// |
|---|
| 22 | |
|---|
| 23 | // From boost/dynamic_bitset.hpp; thanks to Matthias Troyer for cray patch. |
|---|
| 24 | #ifndef BOOST_IOSTREAMS_NO_STREAM_TEMPLATES |
|---|
| 25 | # if defined(__STL_CONFIG_H) && \ |
|---|
| 26 | !defined (__STL_USE_NEW_IOSTREAMS) && !defined(__crayx1) \ |
|---|
| 27 | /**/ |
|---|
| 28 | # define BOOST_IOSTREAMS_NO_STREAM_TEMPLATES |
|---|
| 29 | # endif |
|---|
| 30 | #endif // #ifndef BOOST_IOSTREAMS_NO_STREAM_TEMPLATES |
|---|
| 31 | |
|---|
| 32 | //------------------Wide stream support---------------------------------------// |
|---|
| 33 | |
|---|
| 34 | #ifndef BOOST_IOSTREAMS_NO_WIDE_STREAMS |
|---|
| 35 | # if defined(BOOST_IOSTREAMS_NO_STREAM_TEMPLATES) || \ |
|---|
| 36 | defined (BOOST_NO_STD_WSTREAMBUF) && \ |
|---|
| 37 | ( !defined(__MSL_CPP__) || defined(_MSL_NO_WCHART_CPP_SUPPORT) ) \ |
|---|
| 38 | /**/ |
|---|
| 39 | # define BOOST_IOSTREAMS_NO_WIDE_STREAMS |
|---|
| 40 | # endif |
|---|
| 41 | #endif // #ifndef BOOST_IOSTREAMS_NO_WIDE_STREAMS |
|---|
| 42 | |
|---|
| 43 | //------------------Locale support--------------------------------------------// |
|---|
| 44 | |
|---|
| 45 | #ifndef BOOST_IOSTREAMS_NO_LOCALE |
|---|
| 46 | # if defined(BOOST_NO_STD_LOCALE) || \ |
|---|
| 47 | defined(__CYGWIN__) && \ |
|---|
| 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 |
|---|