Browse Source

check for __cpp_lib_filesystem

pull/2096/head
orignal 3 months ago
parent
commit
a93043f064
  1. 3
      libi2pd/FS.h

3
libi2pd/FS.h

@ -15,7 +15,8 @@ @@ -15,7 +15,8 @@
#include <sstream>
#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
#endif

Loading…
Cancel
Save