You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324
  1. // Copyright (c) 2017 The Starwels developers
  2. // Distributed under the MIT software license, see the accompanying
  3. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
  4. #ifndef STARWELS_FS_H
  5. #define STARWELS_FS_H
  6. #include <stdio.h>
  7. #include <string>
  8. #include <boost/filesystem.hpp>
  9. #include <boost/filesystem/fstream.hpp>
  10. #include <boost/filesystem/detail/utf8_codecvt_facet.hpp>
  11. /** Filesystem operations and types */
  12. namespace fs = boost::filesystem;
  13. /** Bridge operations to C stdio */
  14. namespace fsbridge {
  15. FILE *fopen(const fs::path& p, const char *mode);
  16. FILE *freopen(const fs::path& p, const char *mode, FILE *stream);
  17. };
  18. #endif // STARWELS_FS_H