|
|
@ -15,10 +15,14 @@ |
|
|
|
#include <sstream> |
|
|
|
#include <sstream> |
|
|
|
#include <functional> |
|
|
|
#include <functional> |
|
|
|
|
|
|
|
|
|
|
|
#if (!defined(MAC_OSX) && !TARGET_OS_SIMULATOR && \ |
|
|
|
#ifndef STD_FILESYSTEM |
|
|
|
(__cplusplus >= 201703L) && defined(__cpp_lib_filesystem)) // C++ 17 or higher supporting filesystem
|
|
|
|
#include <filesystem> |
|
|
|
|
|
|
|
#if __cplusplus >= 201703L // C++ 17 or higher
|
|
|
|
|
|
|
|
#if (!defined(MAC_OSX) && !TARGET_OS_SIMULATOR && defined(__cpp_lib_filesystem)) // supports std::filesystem
|
|
|
|
# define STD_FILESYSTEM 1 |
|
|
|
# define STD_FILESYSTEM 1 |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
namespace i2p { |
|
|
|
namespace i2p { |
|
|
|
namespace fs { |
|
|
|
namespace fs { |
|
|
|