From becda018c96266f86fefa87c844624a7b712bf63 Mon Sep 17 00:00:00 2001 From: toge Date: Sat, 5 Aug 2023 18:10:13 +0900 Subject: [PATCH] include cstdint, limits for gcc 13 --- include/xlnt/cell/phonetic_run.hpp | 5 +++-- include/xlnt/utils/variant.hpp | 1 + source/cell/cell.cpp | 1 + source/utils/time.cpp | 1 + source/utils/timedelta.cpp | 1 + 5 files changed, 7 insertions(+), 2 deletions(-) diff --git a/include/xlnt/cell/phonetic_run.hpp b/include/xlnt/cell/phonetic_run.hpp index cbf62ea7..a5ef229c 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 21362578..0f47234a 100644 --- a/include/xlnt/utils/variant.hpp +++ b/include/xlnt/utils/variant.hpp @@ -25,6 +25,7 @@ #include #include +#include #include diff --git a/source/cell/cell.cpp b/source/cell/cell.cpp index f3d69a08..67371199 100644 --- a/source/cell/cell.cpp +++ b/source/cell/cell.cpp @@ -24,6 +24,7 @@ #include #include +#include #include #include diff --git a/source/utils/time.cpp b/source/utils/time.cpp index 89ec8914..6d0f3220 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 a263e685..77163694 100644 --- a/source/utils/timedelta.cpp +++ b/source/utils/timedelta.cpp @@ -22,6 +22,7 @@ // @author: see AUTHORS file #include #include +#include #include