filesystem.hpp 633 B

12345678910111213141516171819202122232425262728
  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. #ifdef BOOST_PROCESS_USE_STD_FS
  8. #include <filesystem>
  9. #else
  10. #include <boost/filesystem/path.hpp>
  11. #include <boost/filesystem/operations.hpp>
  12. #endif
  13. namespace boost
  14. {
  15. namespace process
  16. {
  17. #ifdef BOOST_PROCESS_USE_STD_FS
  18. namespace filesystem = std::filesystem;
  19. #else
  20. namespace filesystem = boost::filesystem;
  21. #endif
  22. }
  23. }
  24. #endif //BOOST_PROCESS_FILESYSTEM_HPP