Jeff Thompson | 86b6d64 | 2013-10-17 15:01:56 -0700 | [diff] [blame] | 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 NDNBOOST_IOSTREAMS_DETAIL_CONFIG_WIDE_STREAMS_HPP_INCLUDED |
| 12 | #define NDNBOOST_IOSTREAMS_DETAIL_CONFIG_WIDE_STREAMS_HPP_INCLUDED |
| 13 | |
| 14 | #include <ndnboost/config.hpp> |
| 15 | #include <ndnboost/detail/workaround.hpp> |
| 16 | #include <cstddef> |
| 17 | |
| 18 | #if defined(_MSC_VER) && (_MSC_VER >= 1020) |
| 19 | # pragma once |
| 20 | #endif |
| 21 | |
| 22 | //------------------Templated stream support----------------------------------// |
| 23 | |
| 24 | // From ndnboost/dynamic_bitset.hpp; thanks to Matthias Troyer for cray patch. |
| 25 | #ifndef NDNBOOST_IOSTREAMS_NO_STREAM_TEMPLATES |
| 26 | # if defined(__STL_CONFIG_H) && \ |
| 27 | !defined (__STL_USE_NEW_IOSTREAMS) && !defined(__crayx1) \ |
| 28 | /**/ |
| 29 | # define NDNBOOST_IOSTREAMS_NO_STREAM_TEMPLATES |
| 30 | # endif |
| 31 | #endif // #ifndef NDNBOOST_IOSTREAMS_NO_STREAM_TEMPLATES |
| 32 | |
| 33 | //------------------Wide stream support---------------------------------------// |
| 34 | |
| 35 | #ifndef NDNBOOST_IOSTREAMS_NO_WIDE_STREAMS |
| 36 | # if defined(NDNBOOST_IOSTREAMS_NO_STREAM_TEMPLATES) || \ |
| 37 | defined (NDNBOOST_NO_STD_WSTREAMBUF) && \ |
| 38 | ( !defined(__MSL_CPP__) || defined(_MSL_NO_WCHART_CPP_SUPPORT) ) \ |
| 39 | /**/ |
| 40 | # define NDNBOOST_IOSTREAMS_NO_WIDE_STREAMS |
| 41 | # endif |
| 42 | #endif // #ifndef NDNBOOST_IOSTREAMS_NO_WIDE_STREAMS |
| 43 | |
| 44 | //------------------Locale support--------------------------------------------// |
| 45 | |
| 46 | #ifndef NDNBOOST_IOSTREAMS_NO_LOCALE |
| 47 | # if defined(NDNBOOST_NO_STD_LOCALE) || \ |
| 48 | defined(__CYGWIN__) && \ |
| 49 | ( !defined(__MSL_CPP__) || defined(_MSL_NO_WCHART_CPP_SUPPORT) ) \ |
| 50 | /**/ |
| 51 | # define NDNBOOST_IOSTREAMS_NO_LOCALE |
| 52 | # endif |
| 53 | #endif // #ifndef NDNBOOST_IOSTREAMS_NO_LOCALE |
| 54 | |
| 55 | #endif // #ifndef NDNBOOST_IOSTREAMS_DETAIL_CONFIG_WIDE_STREAMS_HPP_INCLUDED |