mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-20 07:05:36 +08:00
Merge pull request #5765 from Microsoft/revert-5651-check-for-filesystem
Revert "Use feature macro to check for support of filesystem"
This commit is contained in:
commit
dc970afe34
@ -2,7 +2,7 @@
|
||||
|
||||
#include <vcpkg/base/expected.h>
|
||||
|
||||
#if defined(_WIN32) || defined(__cpp_lib_filesystem)
|
||||
#if defined(_WIN32)
|
||||
#include <filesystem>
|
||||
#else
|
||||
#include <experimental/filesystem>
|
||||
@ -10,12 +10,7 @@
|
||||
|
||||
namespace fs
|
||||
{
|
||||
// VS2015 (_MSC_VER 1900) uses std::experimental::filesystem
|
||||
#if (defined(_MSC_VER) && _MSC_VER > 1900) || defined(__cpp_lib_filesystem)
|
||||
namespace stdfs = std::filesystem;
|
||||
#else
|
||||
namespace stdfs = std::experimental::filesystem;
|
||||
#endif
|
||||
|
||||
using stdfs::copy_options;
|
||||
using stdfs::file_status;
|
||||
|
Loading…
Reference in New Issue
Block a user