filesystem.hpp 722 B

12345678910111213141516171819202122232425262728293031323334
  1. // Copyright (c) 2021 Klemens D. Morgenstern
  2. //
  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. #ifndef BOOST_PROCESS_FILESYSTEM_HPP
  6. #define BOOST_PROCESS_FILESYSTEM_HPP
  7. #include <boost/process/v1/detail/config.hpp>
  8. #ifdef BOOST_PROCESS_USE_STD_FS
  9. #include <filesystem>
  10. #else
  11. #include <boost/filesystem/path.hpp>
  12. #include <boost/filesystem/operations.hpp>
  13. #endif
  14. namespace boost
  15. {
  16. namespace process
  17. {
  18. BOOST_PROCESS_V1_INLINE namespace v1
  19. {
  20. #ifdef BOOST_PROCESS_USE_STD_FS
  21. namespace filesystem = std::filesystem;
  22. #else
  23. namespace filesystem = boost::filesystem;
  24. #endif
  25. }
  26. }
  27. }
  28. #endif //BOOST_PROCESS_FILESYSTEM_HPP