diff --git a/deps/ox/src/ox/fs/filesystem/passthroughfs.cpp b/deps/ox/src/ox/fs/filesystem/passthroughfs.cpp index f4c544c4..94dad120 100644 --- a/deps/ox/src/ox/fs/filesystem/passthroughfs.cpp +++ b/deps/ox/src/ox/fs/filesystem/passthroughfs.cpp @@ -6,7 +6,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#if __has_include() && defined(OX_USE_STDLIB) +#if OX_PASSTHROUGHFS_HAS_DEPENDENCIES && defined(OX_USE_STDLIB) #include diff --git a/deps/ox/src/ox/fs/filesystem/passthroughfs.hpp b/deps/ox/src/ox/fs/filesystem/passthroughfs.hpp index 2f046d5c..3be8186c 100644 --- a/deps/ox/src/ox/fs/filesystem/passthroughfs.hpp +++ b/deps/ox/src/ox/fs/filesystem/passthroughfs.hpp @@ -13,12 +13,23 @@ #include #include -#include "filesystem.hpp" +#define OX_PASSTHROUGHFS_HAS_DEPENDENCIES + +#elif defined(OX_USE_BOOSTFS) + +#include +#include -#ifdef OX_USE_BOOSTFS using std::filesystem = boost::filesystem; + +#define OX_PASSTHROUGHFS_HAS_DEPENDENCIES + #endif +#ifdef OX_PASSTHROUGHFS_HAS_DEPENDENCIES + +#include "filesystem.hpp" + namespace ox { /**