mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 11:17:49 +02:00
Switch to C++17 for Mac OS X
This commit is contained in:
parent
509c039e2f
commit
bbadbdbfdb
4 changed files with 5 additions and 3 deletions
|
@ -9,7 +9,9 @@
|
|||
#include <algorithm>
|
||||
|
||||
#if defined(MAC_OSX)
|
||||
#if !STD_FILESYSTEM
|
||||
#include <boost/system/system_error.hpp>
|
||||
#endif
|
||||
#include <TargetConditionals.h>
|
||||
#endif
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
#include <functional>
|
||||
|
||||
#ifndef STD_FILESYSTEM
|
||||
# if (!defined(MAC_OSX) && !TARGET_OS_SIMULATOR && \
|
||||
# if (!TARGET_OS_SIMULATOR && \
|
||||
(__cplusplus >= 201703L) && __has_include(<filesystem>)) // C++ 17 or higher and supports std::filesystem
|
||||
# define STD_FILESYSTEM 1
|
||||
# else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue