Make filesystem.h more broad
This commit is contained in:
parent
484b204401
commit
7f26b53cb3
1 changed files with 4 additions and 2 deletions
|
|
@ -23,11 +23,13 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#ifdef __linux__
|
||||
#if defined(__cpp_lib_filesystem) || (defined(__has_include) && __has_include(<filesystem>))
|
||||
#include <filesystem>
|
||||
#elif defined(__cpp_lib_experimental_filesystem) || (defined(__has_include) && __has_include(<experimental/filesystem>))
|
||||
#include <experimental/filesystem>
|
||||
namespace std {
|
||||
namespace filesystem = std::experimental::filesystem;
|
||||
}
|
||||
#else
|
||||
#include <filesystem>
|
||||
#error no filesystem support
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue