os/ossrv/ossrv_pub/boost_apis/boost/iostreams/detail/fstream.hpp
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
// (C) Copyright Jonathan Turkanis 2003.
sl@0
     2
// Distributed under the Boost Software License, Version 1.0. (See accompanying
sl@0
     3
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
sl@0
     4
sl@0
     5
// See http://www.boost.org/libs/iostreams for documentation.
sl@0
     6
sl@0
     7
#ifndef BOOST_IOSTREAMS_DETAIL_FSTREAM_HPP_INCLUDED
sl@0
     8
#define BOOST_IOSTREAMS_DETAIL_FSTREAM_HPP_INCLUDED
sl@0
     9
sl@0
    10
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
sl@0
    11
# pragma once
sl@0
    12
#endif              
sl@0
    13
                 
sl@0
    14
#include <boost/iostreams/detail/config/wide_streams.hpp>
sl@0
    15
#ifndef BOOST_IOSTREAMS_NO_STREAM_TEMPLATES
sl@0
    16
# include <fstream>
sl@0
    17
#else
sl@0
    18
# include <fstream.h>
sl@0
    19
#endif 
sl@0
    20
sl@0
    21
#ifndef BOOST_IOSTREAMS_NO_STREAM_TEMPLATES
sl@0
    22
# define BOOST_IOSTREAMS_BASIC_IFSTREAM(Ch, Tr) std::basic_ifstream<Ch, Tr>
sl@0
    23
# define BOOST_IOSTREAMS_BASIC_OFSTREAM(Ch, Tr) std::basic_ofstream<Ch, Tr>
sl@0
    24
# define BOOST_IOSTREAMS_BASIC_FSTREAM(Ch, Tr) std::basic_fstream<Ch, Tr>
sl@0
    25
# define BOOST_IOSTREAMS_BASIC_FILEBUF(Ch) std::basic_filebuf<Ch>
sl@0
    26
#else 
sl@0
    27
# define BOOST_IOSTREAMS_BASIC_IFSTREAM(Ch, Tr) std::ifstream
sl@0
    28
# define BOOST_IOSTREAMS_BASIC_OFSTREAM(Ch, Tr) std::ofstream
sl@0
    29
# define BOOST_IOSTREAMS_BASIC_FILEBUF(Ch) std::filebuf
sl@0
    30
#endif
sl@0
    31
sl@0
    32
#endif // #ifndef BOOST_IOSTREAMS_DETAIL_FSTREAM_HPP_INCLUDED