Use alternate filesystem implementation on FreeBSD

This commit is contained in:
David Schlachter 2021-02-08 15:11:26 -05:00 committed by GitHub
parent 1f664c6441
commit 6725e28f14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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;