mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-08-08 03:36:06 -04:00
Merge pull request #393 Fix preprocessor issues from jowr/fix_preprocessor_issues
This commit is contained in:
commit
403839d910
@ -35,10 +35,10 @@ __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_13_0
|
|||||||
|
|
||||||
// disable the support if the required header is not available
|
// disable the support if the required header is not available
|
||||||
#ifdef __has_include
|
#ifdef __has_include
|
||||||
#ifndef __has_include(<filesystem>)
|
#if !__has_include(<filesystem>)
|
||||||
#undef SQLITECPP_HAVE_STD_FILESYSTEM
|
#undef SQLITECPP_HAVE_STD_FILESYSTEM
|
||||||
#endif
|
#endif
|
||||||
#ifndef __has_include(<experimental/filesystem>)
|
#if !__has_include(<experimental/filesystem>)
|
||||||
#undef SQLITECPP_HAVE_EXPERIMENTAL_FILESYSTEM
|
#undef SQLITECPP_HAVE_EXPERIMENTAL_FILESYSTEM
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
@ -34,6 +34,7 @@ void assertion_failed(const char* apFile, const long apLine, const char* apFunc,
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef SQLITECPP_INTERNAL_SQLITE
|
||||||
TEST(SQLiteCpp, version)
|
TEST(SQLiteCpp, version)
|
||||||
{
|
{
|
||||||
EXPECT_STREQ(SQLITE_VERSION, SQLite::VERSION);
|
EXPECT_STREQ(SQLITE_VERSION, SQLite::VERSION);
|
||||||
@ -41,6 +42,7 @@ TEST(SQLiteCpp, version)
|
|||||||
EXPECT_STREQ(SQLITE_VERSION, SQLite::getLibVersion());
|
EXPECT_STREQ(SQLITE_VERSION, SQLite::getLibVersion());
|
||||||
EXPECT_EQ (SQLITE_VERSION_NUMBER, SQLite::getLibVersionNumber());
|
EXPECT_EQ (SQLITE_VERSION_NUMBER, SQLite::getLibVersionNumber());
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
TEST(Database, ctorExecCreateDropExist)
|
TEST(Database, ctorExecCreateDropExist)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user