Browse Source
If a config directory did not exist, the ini file was not saved at all. Only implemented for targets that support `std::filesystem` or `std::experimental::filesystem`. These are all the targets except nxdk and iOS (only supported on iOS 13+).pull/5656/head
5 changed files with 59 additions and 1 deletions
@ -0,0 +1,24 @@
|
||||
#pragma once |
||||
|
||||
#if defined(__APPLE__) |
||||
#include <Availability.h> |
||||
#if (defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED < 101500) \ |
||||
|| (defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && __IPHONE_OS_VERSION_MIN_REQUIRED < 130000) |
||||
#define DVL_NO_FILESYSTEM |
||||
#endif |
||||
#elif defined(NXDK) || (defined(_MSVC_LANG) && _MSVC_LANG < 201703L) |
||||
#define DVL_NO_FILESYSTEM |
||||
#endif |
||||
|
||||
#ifndef DVL_NO_FILESYSTEM |
||||
#if defined(__has_include) |
||||
#if __has_include(<filesystem>) |
||||
#define DVL_HAS_FILESYSTEM |
||||
#include <filesystem> // IWYU pragma: export |
||||
#elif __has_include(<experimental/filesystem>) |
||||
#define DVL_HAS_FILESYSTEM |
||||
#include <experimental/filesystem> // IWYU pragma: export |
||||
#define filesystem experimental::filesystem |
||||
#endif |
||||
#endif |
||||
#endif |
||||
Loading…
Reference in new issue