From 6fca326402b01e6c02042feffadd159564a40cdb Mon Sep 17 00:00:00 2001 From: Bernd Ritter Date: Wed, 16 Aug 2023 20:42:15 +0200 Subject: [PATCH] Fixed compilation failure on gcc 13, added includes where integers used and include was missing. All tests run file --- include/xlnt/cell/phonetic_run.hpp | 5 +++-- include/xlnt/utils/variant.hpp | 1 + include/xlnt/worksheet/worksheet.hpp | 1 + python/xlntpyarrow.lib.cpp | 1 + source/detail/cryptography/aes.cpp | 1 + source/detail/cryptography/compound_document.cpp | 1 + source/detail/cryptography/compound_document.hpp | 1 + source/detail/cryptography/encryption_info.cpp | 1 + source/detail/cryptography/sha.cpp | 1 + source/detail/cryptography/xlsx_crypto_producer.cpp | 2 ++ source/detail/serialization/xlsx_consumer.cpp | 1 + source/detail/serialization/xlsx_producer.cpp | 1 + source/detail/serialization/zstream.cpp | 1 + source/detail/serialization/zstream.hpp | 1 + source/utils/time.cpp | 1 + source/utils/timedelta.cpp | 1 + source/utils/variant.cpp | 4 +++- source/worksheet/worksheet.cpp | 1 + tests/utils/variant_tests.cpp | 2 ++ 19 files changed, 25 insertions(+), 3 deletions(-) diff --git a/include/xlnt/cell/phonetic_run.hpp b/include/xlnt/cell/phonetic_run.hpp index cbf62ea7a..a5ef229c2 100644 --- a/include/xlnt/cell/phonetic_run.hpp +++ b/include/xlnt/cell/phonetic_run.hpp @@ -24,6 +24,7 @@ #pragma once #include +#include #include @@ -35,8 +36,8 @@ namespace xlnt { struct XLNT_API phonetic_run { std::string text; - uint32_t start; - uint32_t end; + std::uint32_t start; + std::uint32_t end; bool preserve_space; bool operator==(const phonetic_run &other) const; diff --git a/include/xlnt/utils/variant.hpp b/include/xlnt/utils/variant.hpp index 213625789..0f47234a1 100644 --- a/include/xlnt/utils/variant.hpp +++ b/include/xlnt/utils/variant.hpp @@ -25,6 +25,7 @@ #include #include +#include #include diff --git a/include/xlnt/worksheet/worksheet.hpp b/include/xlnt/worksheet/worksheet.hpp index a4cf9e077..e299b52ed 100644 --- a/include/xlnt/worksheet/worksheet.hpp +++ b/include/xlnt/worksheet/worksheet.hpp @@ -29,6 +29,7 @@ #include #include #include +#include #include #include diff --git a/python/xlntpyarrow.lib.cpp b/python/xlntpyarrow.lib.cpp index 32d23f6cd..d053cbfd7 100644 --- a/python/xlntpyarrow.lib.cpp +++ b/python/xlntpyarrow.lib.cpp @@ -22,6 +22,7 @@ // @author: see AUTHORS file #include +#include #include #include #include diff --git a/source/detail/cryptography/aes.cpp b/source/detail/cryptography/aes.cpp index cdaa918d9..563de30b0 100644 --- a/source/detail/cryptography/aes.cpp +++ b/source/detail/cryptography/aes.cpp @@ -27,6 +27,7 @@ #include #include +#include #include #include #include diff --git a/source/detail/cryptography/compound_document.cpp b/source/detail/cryptography/compound_document.cpp index 765af4bc4..313f8a361 100644 --- a/source/detail/cryptography/compound_document.cpp +++ b/source/detail/cryptography/compound_document.cpp @@ -29,6 +29,7 @@ #include #include #include +#include #include #include diff --git a/source/detail/cryptography/compound_document.hpp b/source/detail/cryptography/compound_document.hpp index 45872b6d5..daa5c2c54 100644 --- a/source/detail/cryptography/compound_document.hpp +++ b/source/detail/cryptography/compound_document.hpp @@ -29,6 +29,7 @@ #include #include #include +#include #include #include diff --git a/source/detail/cryptography/encryption_info.cpp b/source/detail/cryptography/encryption_info.cpp index 232d10268..e37bead91 100644 --- a/source/detail/cryptography/encryption_info.cpp +++ b/source/detail/cryptography/encryption_info.cpp @@ -22,6 +22,7 @@ // @author: see AUTHORS file #include +#include #include #include diff --git a/source/detail/cryptography/sha.cpp b/source/detail/cryptography/sha.cpp index 3422e0855..1c9ac47b9 100644 --- a/source/detail/cryptography/sha.cpp +++ b/source/detail/cryptography/sha.cpp @@ -27,6 +27,7 @@ #include #include #include +#include #include diff --git a/source/detail/cryptography/xlsx_crypto_producer.cpp b/source/detail/cryptography/xlsx_crypto_producer.cpp index 3a656135a..53b34ab8b 100644 --- a/source/detail/cryptography/xlsx_crypto_producer.cpp +++ b/source/detail/cryptography/xlsx_crypto_producer.cpp @@ -21,6 +21,8 @@ // @license: http://www.opensource.org/licenses/mit-license.php // @author: see AUTHORS file +#include + #include #include #include diff --git a/source/detail/serialization/xlsx_consumer.cpp b/source/detail/serialization/xlsx_consumer.cpp index dc50106cb..b1041d003 100644 --- a/source/detail/serialization/xlsx_consumer.cpp +++ b/source/detail/serialization/xlsx_consumer.cpp @@ -26,6 +26,7 @@ #include // for std::accumulate #include #include +#include #include #include diff --git a/source/detail/serialization/xlsx_producer.cpp b/source/detail/serialization/xlsx_producer.cpp index 6f6e26ccc..1db96d4d8 100644 --- a/source/detail/serialization/xlsx_producer.cpp +++ b/source/detail/serialization/xlsx_producer.cpp @@ -26,6 +26,7 @@ #include #include #include +#include #include #include diff --git a/source/detail/serialization/zstream.cpp b/source/detail/serialization/zstream.cpp index 949dfaaf4..8ce07fa4a 100644 --- a/source/detail/serialization/zstream.cpp +++ b/source/detail/serialization/zstream.cpp @@ -43,6 +43,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. #include // for std::back_inserter #include #include +#include #include #include diff --git a/source/detail/serialization/zstream.hpp b/source/detail/serialization/zstream.hpp index 0ae7ae3fc..149a0d399 100644 --- a/source/detail/serialization/zstream.hpp +++ b/source/detail/serialization/zstream.hpp @@ -39,6 +39,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. #include #include #include +#include #include #include diff --git a/source/utils/time.cpp b/source/utils/time.cpp index 89ec89148..6d0f3220f 100644 --- a/source/utils/time.cpp +++ b/source/utils/time.cpp @@ -22,6 +22,7 @@ // @author: see AUTHORS file #include #include +#include #include diff --git a/source/utils/timedelta.cpp b/source/utils/timedelta.cpp index a263e6855..ef065efd5 100644 --- a/source/utils/timedelta.cpp +++ b/source/utils/timedelta.cpp @@ -22,6 +22,7 @@ // @author: see AUTHORS file #include #include +#include #include diff --git a/source/utils/variant.cpp b/source/utils/variant.cpp index ff60082eb..671fce62d 100644 --- a/source/utils/variant.cpp +++ b/source/utils/variant.cpp @@ -21,6 +21,8 @@ // @license: http://www.opensource.org/licenses/mit-license.php // @author: see AUTHORS file +#include + #include #include @@ -42,7 +44,7 @@ variant::variant(const char *value) { } -variant::variant(int32_t value) +variant::variant(std::int32_t value) : type_(type::i4), i4_value_(value) { diff --git a/source/worksheet/worksheet.cpp b/source/worksheet/worksheet.cpp index bd64ac37d..df202171c 100644 --- a/source/worksheet/worksheet.cpp +++ b/source/worksheet/worksheet.cpp @@ -25,6 +25,7 @@ #include #include #include +#include #include #include diff --git a/tests/utils/variant_tests.cpp b/tests/utils/variant_tests.cpp index 6c893d17b..4df7cf2b3 100644 --- a/tests/utils/variant_tests.cpp +++ b/tests/utils/variant_tests.cpp @@ -21,6 +21,8 @@ // @license: http://www.opensource.org/licenses/mit-license.php // @author: see AUTHORS file +#include + #include #include