windows_posix.hpp 1.0 KB

12345678910111213141516171819202122232425
  1. // (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com)
  2. // (C) Copyright 2004-2007 Jonathan Turkanis
  3. // (C) Copyright 2002, 2003 Beman Dawes Boost.Filesystem
  4. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  5. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.)
  6. // See http://www.boost.org/libs/iostreams for documentation.
  7. #ifndef BOOST_IOSTREAMS_DETAIL_CONFIG_WINDOWS_POSIX_HPP_INCLUDED
  8. #define BOOST_IOSTREAMS_DETAIL_CONFIG_WINDOWS_POSIX_HPP_INCLUDED
  9. //------------------From boost/libs/filesystem/src/path_posix_windows.cpp-----//
  10. // BOOST_IOSTREAMS_POSIX or BOOST_IOSTREAMS_WINDOWS specify which API to use.
  11. #if !defined( BOOST_IOSTREAMS_WINDOWS ) && !defined( BOOST_IOSTREAMS_POSIX )
  12. # if (defined(_WIN32) || defined(__WIN32__) || defined(WIN32)) && \
  13. !defined(__CYGWIN__) \
  14. /**/
  15. # define BOOST_IOSTREAMS_WINDOWS
  16. # else
  17. # define BOOST_IOSTREAMS_POSIX
  18. # endif
  19. #endif
  20. #endif // #ifndef BOOST_IOSTREAMS_DETAIL_CONFIG_WINDOWS_POSIX_HPP_INCLUDED