Merge pull request #3 from davidschlachter/master

Use alternate filesystem implementation on FreeBSD (fix #2)
This commit is contained in:
Iliyas Jorio 2021-02-18 21:09:41 +01:00 committed by GitHub
commit b999b84abb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,6 @@
#pragma once
#if !__APPLE__ /* don't use built-in filesystem implementation so we can support older macOS versions */ && \
#if !__APPLE__ && !__FreeBSD__ /* don't use built-in filesystem implementation so we can support older macOS and FreeBSD */ && \
defined(__cplusplus) && __cplusplus >= 201703L && defined(__has_include) && __has_include(<filesystem>)
#include <filesystem>
namespace fs = std::filesystem;