mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-08 00:37:15 +01:00
9298065cef
CPR has features disabled and PCRE is fully disabled until updated to new code.
27 lines
758 B
C++
27 lines
758 B
C++
#ifndef CPR_FILESYSTEM_H
|
|
#define CPR_FILESYSTEM_H
|
|
|
|
// Include filesystem into the namespace "fs" from either "filesystem" or "experimental/filesystem" or "boost/filesystem"
|
|
#ifdef CPR_USE_BOOST_FILESYSTEM
|
|
#define BOOST_FILESYSTEM_VERSION 4 // Use the latest, with the closest behavior to std::filesystem.
|
|
#include <boost/filesystem.hpp>
|
|
namespace cpr {
|
|
namespace fs = boost::filesystem;
|
|
}
|
|
// cppcheck-suppress preprocessorErrorDirective
|
|
#elif __has_include(<filesystem>)
|
|
#include <filesystem>
|
|
namespace cpr {
|
|
namespace fs = std::filesystem;
|
|
}
|
|
#elif __has_include("experimental/filesystem")
|
|
#include <experimental/filesystem>
|
|
namespace cpr {
|
|
namespace fs = std::experimental::filesystem;
|
|
}
|
|
#else
|
|
#error "Failed to include <filesystem> header!"
|
|
#endif
|
|
|
|
#endif
|