[ox/fs] Cleanup PassThroughFS detection logic

This commit is contained in:
Gary Talent 2021-04-16 21:57:34 -05:00
parent 0f99f7eb91
commit b7d24c998e

View File

@ -8,22 +8,20 @@
#pragma once
#if __has_include(<filesystem>)
#if __has_include(<filesystem>) && defined(OX_USE_STDLIB)
#include <filesystem>
#include <string>
#define OX_HAS_PASSTHROUGHFS
#endif
#ifdef OX_HAS_PASSTHROUGHFS
#include <ox/std/bit.hpp>
#include "filesystem.hpp"
#define OX_HAS_PASSTHROUGHFS
namespace ox {
constexpr auto HasPassThroughFS = true;
/**
*
*/
@ -102,4 +100,12 @@ Error PassThroughFS::ls(const char *dir, F cb) noexcept {
}
#else
namespace ox {
constexpr auto HasPassThroughFS = false;
}
#endif