mirror of
https://github.com/rwengine/openrw.git
synced 2025-04-29 13:28:04 +03:00
rwlib: add error_code to rwfs namespace
Some rwfs functions need an error_code argument.
This commit is contained in:
parent
0078a5c9b5
commit
6dffed543a
1 changed files with 15 additions and 3 deletions
|
@ -7,14 +7,26 @@
|
||||||
|
|
||||||
#if RW_FS_LIBRARY == RW_FS_CXX17
|
#if RW_FS_LIBRARY == RW_FS_CXX17
|
||||||
#include <filesystem>
|
#include <filesystem>
|
||||||
namespace rwfs = std::filesystem;
|
#include <system_error>
|
||||||
|
namespace rwfs {
|
||||||
|
using namespace std::filesystem;
|
||||||
|
using error_code = std::error_code;
|
||||||
|
}
|
||||||
#elif RW_FS_LIBRARY == RW_FS_CXXTS
|
#elif RW_FS_LIBRARY == RW_FS_CXXTS
|
||||||
#include <experimental/filesystem>
|
#include <experimental/filesystem>
|
||||||
namespace rwfs = std::experimental::filesystem;
|
#include <system_error>
|
||||||
|
namespace rwfs {
|
||||||
|
using namespace std::experimental::filesystem;
|
||||||
|
using error_code = std::error_code;
|
||||||
|
}
|
||||||
#elif RW_FS_LIBRARY == RW_FS_BOOST
|
#elif RW_FS_LIBRARY == RW_FS_BOOST
|
||||||
#include <boost/filesystem.hpp>
|
#include <boost/filesystem.hpp>
|
||||||
#include <boost/functional/hash.hpp>
|
#include <boost/functional/hash.hpp>
|
||||||
namespace rwfs = boost::filesystem;
|
#include <boost/system/error_code.hpp>
|
||||||
|
namespace rwfs {
|
||||||
|
using namespace boost::filesystem;
|
||||||
|
using error_code = boost::system::error_code;
|
||||||
|
}
|
||||||
#if BOOST_VERSION < 105600
|
#if BOOST_VERSION < 105600
|
||||||
namespace boost {
|
namespace boost {
|
||||||
namespace filesystem {
|
namespace filesystem {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue