From 8e078fb708d45a1c7253ae79ca5b1878ce5815c1 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Sat, 8 May 2021 00:21:12 +0300 Subject: [PATCH] mdbx++: fix using `std::filesystem::path` for iOS <= 13.0 Change-Id: I8f75e0698acfb9e0da325f5a3c1e2a513cb43e2e --- mdbx.h++ | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mdbx.h++ b/mdbx.h++ index 3fc77609..046b1d19 100644 --- a/mdbx.h++ +++ b/mdbx.h++ @@ -208,7 +208,9 @@ using filehandle = ::mdbx_filehandle_t; #if defined(DOXYGEN) || \ (defined(__cpp_lib_filesystem) && __cpp_lib_filesystem >= 201703L && \ (!defined(__MAC_OS_X_VERSION_MIN_REQUIRED) || \ - __MAC_OS_X_VERSION_MIN_REQUIRED >= 101500)) + __MAC_OS_X_VERSION_MIN_REQUIRED >= 101500) && \ + (!defined(__IPHONE_OS_VERSION_MIN_REQUIRED) || \ + __IPHONE_OS_VERSION_MIN_REQUIRED >= 130100)) #define MDBX_STD_FILESYSTEM_PATH using path = ::std::filesystem::path; #elif defined(_WIN32) || defined(_WIN64)