From 1ab80761635e3b73f8d6f570a536dad8a5c793c5 Mon Sep 17 00:00:00 2001 From: klaus triendl Date: Thu, 18 Jul 2024 23:09:37 +0200 Subject: [PATCH] Included explicitly in examples and unit tests When importing sqlite_orm as a named module, sqlite3 symbols are not exported. --- examples/blob_binding.cpp | 1 + examples/chrono_binding.cpp | 6 ++++++ examples/enum_binding.cpp | 2 +- examples/nullable_enum_binding.cpp | 2 +- tests/row_extractor.cpp | 1 + tests/static_tests/row_extractor.cpp | 1 + tests/storage_non_crud_tests.cpp | 1 + 7 files changed, 12 insertions(+), 2 deletions(-) diff --git a/examples/blob_binding.cpp b/examples/blob_binding.cpp index 2d7e7fffe..fdb4f1fef 100644 --- a/examples/blob_binding.cpp +++ b/examples/blob_binding.cpp @@ -1,3 +1,4 @@ +#include #include #include diff --git a/examples/chrono_binding.cpp b/examples/chrono_binding.cpp index d887b8071..65b500d73 100644 --- a/examples/chrono_binding.cpp +++ b/examples/chrono_binding.cpp @@ -1,4 +1,10 @@ +#include #include +#ifdef __has_include +#if __has_include() +#include +#endif +#endif #if __cpp_lib_chrono >= 201907L && __cpp_lib_format >= 201907L #define ENABLE_THIS_EXAMPLE #endif diff --git a/examples/enum_binding.cpp b/examples/enum_binding.cpp index 0bee82ca8..4982d4cf8 100644 --- a/examples/enum_binding.cpp +++ b/examples/enum_binding.cpp @@ -1,4 +1,4 @@ - +#include #include #include diff --git a/examples/nullable_enum_binding.cpp b/examples/nullable_enum_binding.cpp index 375097144..bbd8f0185 100644 --- a/examples/nullable_enum_binding.cpp +++ b/examples/nullable_enum_binding.cpp @@ -1,4 +1,4 @@ - +#include #include #include #include diff --git a/tests/row_extractor.cpp b/tests/row_extractor.cpp index 141541da2..f0b989876 100644 --- a/tests/row_extractor.cpp +++ b/tests/row_extractor.cpp @@ -1,3 +1,4 @@ +#include #include #include diff --git a/tests/static_tests/row_extractor.cpp b/tests/static_tests/row_extractor.cpp index a7fc39fd2..5279c21b7 100644 --- a/tests/static_tests/row_extractor.cpp +++ b/tests/static_tests/row_extractor.cpp @@ -1,3 +1,4 @@ +#include #include #ifdef SQLITE_ORM_CPP20_CONCEPTS_SUPPORTED #define ENABLE_THIS_UT diff --git a/tests/storage_non_crud_tests.cpp b/tests/storage_non_crud_tests.cpp index f4167dce2..a4cfe0b47 100644 --- a/tests/storage_non_crud_tests.cpp +++ b/tests/storage_non_crud_tests.cpp @@ -1,3 +1,4 @@ +#include #include #include