check for __cpp_lib_filesystem

This commit is contained in:
orignal 2024-08-27 22:12:13 -04:00
parent ae309ca632
commit a93043f064

View File

@ -15,7 +15,8 @@
#include <sstream> #include <sstream>
#include <functional> #include <functional>
#if (!defined(_WIN32) && !TARGET_OS_SIMULATOR && (__cplusplus >= 201703L)) // C++ 17 or higher #if (!defined(_WIN32) && !TARGET_OS_SIMULATOR && \
(__cplusplus >= 201703L) && defined(__cpp_lib_filesystem)) // C++ 17 or higher supporting filesystem
# define STD_FILESYSTEM 1 # define STD_FILESYSTEM 1
#endif #endif