diff --git a/rwlib/source/rw/filesystem.hpp b/rwlib/source/rw/filesystem.hpp index 2ae94ec1..46203f16 100644 --- a/rwlib/source/rw/filesystem.hpp +++ b/rwlib/source/rw/filesystem.hpp @@ -7,14 +7,26 @@ #if RW_FS_LIBRARY == RW_FS_CXX17 #include -namespace rwfs = std::filesystem; +#include +namespace rwfs { + using namespace std::filesystem; + using error_code = std::error_code; +} #elif RW_FS_LIBRARY == RW_FS_CXXTS #include -namespace rwfs = std::experimental::filesystem; +#include +namespace rwfs { + using namespace std::experimental::filesystem; + using error_code = std::error_code; +} #elif RW_FS_LIBRARY == RW_FS_BOOST #include #include -namespace rwfs = boost::filesystem; +#include +namespace rwfs { + using namespace boost::filesystem; + using error_code = boost::system::error_code; +} #if BOOST_VERSION < 105600 namespace boost { namespace filesystem {