]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | /* |
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 | * File: boost/iostreams/detail/file_handle.hpp | |
8 | * Date: Sun Jun 22 14:23:12 MDT 2008 | |
9 | * Copyright: 2008 CodeRage, LLC | |
10 | * Author: Jonathan Turkanis | |
11 | * Contact: turkanis at coderage dot com | |
12 | * | |
13 | * Defines the type boost::iostreams::detail::file_handle, representing an | |
14 | * operating system file handle. | |
15 | */ | |
16 | ||
17 | #ifndef BOOST_IOSTREAMS_DETAIL_FILE_HANDLE_HPP_INCLUDED | |
18 | #define BOOST_IOSTREAMS_DETAIL_FILE_HANDLE_HPP_INCLUDED | |
19 | ||
20 | #include <boost/iostreams/detail/config/windows_posix.hpp> | |
21 | ||
22 | namespace boost { namespace iostreams { namespace detail { | |
23 | ||
24 | #ifdef BOOST_IOSTREAMS_WINDOWS | |
25 | typedef void* file_handle; // A.k.a. HANDLE | |
26 | #else | |
27 | typedef int file_handle; | |
28 | #endif | |
29 | ||
30 | } } } // End namespaces detail, iostreams, boost. | |
31 | ||
32 | #endif // #ifndef BOOST_IOSTREAMS_DETAIL_FILE_HANDLE_HPP_INCLUDED |