mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-08-07 11:16:11 -04:00
Merge pull request #346 from guoh27/master
Add compatible definition for std::experimental::filesystem
This commit is contained in:
commit
cd24b93bba
@ -15,6 +15,7 @@
|
|||||||
// c++17: MinGW GCC version > 8
|
// c++17: MinGW GCC version > 8
|
||||||
// c++17: Visual Studio 2017 version 15.7
|
// c++17: Visual Studio 2017 version 15.7
|
||||||
// c++17: macOS unless targetting compatibility with macOS < 10.15
|
// c++17: macOS unless targetting compatibility with macOS < 10.15
|
||||||
|
#ifndef SQLITECPP_HAVE_STD_EXPERIMENTAL_FILESYSTEM
|
||||||
#if __cplusplus >= 201703L
|
#if __cplusplus >= 201703L
|
||||||
#if defined(__MINGW32__) || defined(__MINGW64__)
|
#if defined(__MINGW32__) || defined(__MINGW64__)
|
||||||
#if __GNUC__ > 8 // MinGW requires GCC version > 8 for std::filesystem
|
#if __GNUC__ > 8 // MinGW requires GCC version > 8 for std::filesystem
|
||||||
@ -36,6 +37,16 @@ __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_13_0
|
|||||||
#include <filesystem>
|
#include <filesystem>
|
||||||
#endif // c++17 and a suitable compiler
|
#endif // c++17 and a suitable compiler
|
||||||
|
|
||||||
|
#else // SQLITECPP_HAVE_STD_EXPERIMENTAL_FILESYSTEM
|
||||||
|
|
||||||
|
#define SQLITECPP_HAVE_STD_FILESYSTEM
|
||||||
|
#include <experimental/filesystem>
|
||||||
|
namespace std {
|
||||||
|
namespace filesystem = experimental::filesystem;
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif // SQLITECPP_HAVE_STD_EXPERIMENTAL_FILESYSTEM
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user