file_handle.hpp 1.0 KB

1234567891011121314151617181920212223242526272829303132
  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. #ifndef BOOST_IOSTREAMS_DETAIL_FILE_HANDLE_HPP_INCLUDED
  17. #define BOOST_IOSTREAMS_DETAIL_FILE_HANDLE_HPP_INCLUDED
  18. #include <boost/iostreams/detail/config/windows_posix.hpp>
  19. namespace boost { namespace iostreams { namespace detail {
  20. #ifdef BOOST_IOSTREAMS_WINDOWS
  21. typedef void* file_handle; // A.k.a. HANDLE
  22. #else
  23. typedef int file_handle;
  24. #endif
  25. } } } // End namespaces detail, iostreams, boost.
  26. #endif // #ifndef BOOST_IOSTREAMS_DETAIL_FILE_HANDLE_HPP_INCLUDED