[ox/fs] Fix issues with PassthroughFS Boost port

This commit is contained in:
Gary Talent 2019-07-06 01:47:09 -05:00
parent 845373e049
commit ee9cdbe1e7
2 changed files with 14 additions and 3 deletions

View File

@ -6,7 +6,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#if __has_include(<filesystem>) && defined(OX_USE_STDLIB)
#if OX_PASSTHROUGHFS_HAS_DEPENDENCIES && defined(OX_USE_STDLIB)
#include <stdio.h>

View File

@ -13,12 +13,23 @@
#include <filesystem>
#include <string>
#include "filesystem.hpp"
#define OX_PASSTHROUGHFS_HAS_DEPENDENCIES
#elif defined(OX_USE_BOOSTFS)
#include <boost/filesystem>
#include <string>
#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 {
/**