mirror of
https://github.com/ceph/ceph
synced 2024-12-23 03:44:23 +00:00
1d58db8c9b
Otherwise it is linked agains lc++ on FreeBSD,a dn that will satisfy both tested libraries. Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
15 lines
349 B
C++
15 lines
349 B
C++
#if __has_include(<filesystem>)
|
|
#include <filesystem>
|
|
namespace fs = std::filesystem;
|
|
#elif __has_include(<experimental/filesystem>)
|
|
#include <experimental/filesystem>
|
|
namespace fs = std::experimental::filesystem;
|
|
#else
|
|
#error std::filesystem not available!
|
|
#endif
|
|
|
|
int main() {
|
|
fs::create_directory("sandbox");
|
|
fs::remove_all("sandbox");
|
|
}
|