[ox/fs] Cleanup PassThroughFS detection logic
This commit is contained in:
parent
0f99f7eb91
commit
b7d24c998e
20
deps/ox/src/ox/fs/filesystem/passthroughfs.hpp
vendored
20
deps/ox/src/ox/fs/filesystem/passthroughfs.hpp
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user