From 6a96d1cec4db5bda5136d11def3f6e51a04d5b9c Mon Sep 17 00:00:00 2001 From: klaus triendl Date: Fri, 19 Jul 2024 10:53:00 +0200 Subject: [PATCH] Explicitly included in examples and unit tests --- examples/blob_binding.cpp | 1 + examples/synchronous.cpp | 12 ++++++------ tests/storage_tests.cpp | 1 + tests/sync_schema_tests.cpp | 3 ++- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/examples/blob_binding.cpp b/examples/blob_binding.cpp index fdb4f1fef..3839c58a6 100644 --- a/examples/blob_binding.cpp +++ b/examples/blob_binding.cpp @@ -1,5 +1,6 @@ #include #include +#include #include using namespace sqlite_orm; diff --git a/examples/synchronous.cpp b/examples/synchronous.cpp index 6147efff2..d506bf848 100644 --- a/examples/synchronous.cpp +++ b/examples/synchronous.cpp @@ -1,15 +1,15 @@ - #include +#include #include struct Query { std::string src_ip; - uint16_t src_port; - uint16_t txn_id; - uint32_t tv_sec; - uint32_t tv_usec; + std::uint16_t src_port; + std::uint16_t txn_id; + std::uint32_t tv_sec; + std::uint32_t tv_usec; std::string name; - uint16_t type; + std::uint16_t type; }; int main(int, char**) { diff --git a/tests/storage_tests.cpp b/tests/storage_tests.cpp index 54e3da246..e9e2244a9 100644 --- a/tests/storage_tests.cpp +++ b/tests/storage_tests.cpp @@ -1,3 +1,4 @@ +#include #include #include diff --git a/tests/sync_schema_tests.cpp b/tests/sync_schema_tests.cpp index eb245a520..65d48945c 100644 --- a/tests/sync_schema_tests.cpp +++ b/tests/sync_schema_tests.cpp @@ -1,3 +1,4 @@ +#include #include #include @@ -138,7 +139,7 @@ TEST_CASE("issue521") { struct MockDatabasePoco { int id{-1}; std::string name; - uint32_t alpha{0}; + std::uint32_t alpha{0}; float beta{0.0}; #ifndef SQLITE_ORM_AGGREGATE_NSDMI_SUPPORTED