Fixed compilation failure on gcc 13, added includes where integers used and include was missing. All tests run file

This commit is contained in:
Bernd Ritter 2023-08-16 20:42:15 +02:00
parent 297b331435
commit 6fca326402
19 changed files with 25 additions and 3 deletions

View File

@ -24,6 +24,7 @@
#pragma once #pragma once
#include <string> #include <string>
#include <cstdint>
#include <xlnt/xlnt_config.hpp> #include <xlnt/xlnt_config.hpp>
@ -35,8 +36,8 @@ namespace xlnt {
struct XLNT_API phonetic_run struct XLNT_API phonetic_run
{ {
std::string text; std::string text;
uint32_t start; std::uint32_t start;
uint32_t end; std::uint32_t end;
bool preserve_space; bool preserve_space;
bool operator==(const phonetic_run &other) const; bool operator==(const phonetic_run &other) const;

View File

@ -25,6 +25,7 @@
#include <string> #include <string>
#include <vector> #include <vector>
#include <cstdint>
#include <xlnt/xlnt_config.hpp> #include <xlnt/xlnt_config.hpp>

View File

@ -29,6 +29,7 @@
#include <string> #include <string>
#include <unordered_map> #include <unordered_map>
#include <vector> #include <vector>
#include <cstdint>
#include <xlnt/xlnt_config.hpp> #include <xlnt/xlnt_config.hpp>
#include <xlnt/cell/index_types.hpp> #include <xlnt/cell/index_types.hpp>

View File

@ -22,6 +22,7 @@
// @author: see AUTHORS file // @author: see AUTHORS file
#include <exception> #include <exception>
#include <cstdint>
#include <arrow/api.h> #include <arrow/api.h>
#include <arrow/python/pyarrow.h> #include <arrow/python/pyarrow.h>
#include <pybind11/pybind11.h> #include <pybind11/pybind11.h>

View File

@ -27,6 +27,7 @@
#include <algorithm> #include <algorithm>
#include <array> #include <array>
#include <cstdint>
#include <assert.h> #include <assert.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -29,6 +29,7 @@
#include <locale> #include <locale>
#include <string> #include <string>
#include <vector> #include <vector>
#include <cstdint>
#include <xlnt/utils/exceptions.hpp> #include <xlnt/utils/exceptions.hpp>
#include <detail/binary.hpp> #include <detail/binary.hpp>

View File

@ -29,6 +29,7 @@
#include <memory> #include <memory>
#include <string> #include <string>
#include <unordered_map> #include <unordered_map>
#include <cstdint>
#include <detail/binary.hpp> #include <detail/binary.hpp>
#include <detail/unicode.hpp> #include <detail/unicode.hpp>

View File

@ -22,6 +22,7 @@
// @author: see AUTHORS file // @author: see AUTHORS file
#include <array> #include <array>
#include <cstdint>
#include <detail/binary.hpp> #include <detail/binary.hpp>
#include <detail/cryptography/aes.hpp> #include <detail/cryptography/aes.hpp>

View File

@ -27,6 +27,7 @@
#include <iomanip> #include <iomanip>
#include <sstream> #include <sstream>
#include <string> #include <string>
#include <cstdint>
#include <detail/cryptography/sha.hpp> #include <detail/cryptography/sha.hpp>

View File

@ -21,6 +21,8 @@
// @license: http://www.opensource.org/licenses/mit-license.php // @license: http://www.opensource.org/licenses/mit-license.php
// @author: see AUTHORS file // @author: see AUTHORS file
#include <cstdint>
#include <xlnt/utils/exceptions.hpp> #include <xlnt/utils/exceptions.hpp>
#include <detail/constants.hpp> #include <detail/constants.hpp>
#include <detail/cryptography/aes.hpp> #include <detail/cryptography/aes.hpp>

View File

@ -26,6 +26,7 @@
#include <numeric> // for std::accumulate #include <numeric> // for std::accumulate
#include <sstream> #include <sstream>
#include <unordered_map> #include <unordered_map>
#include <cstdint>
#include <xlnt/cell/cell.hpp> #include <xlnt/cell/cell.hpp>
#include <xlnt/cell/comment.hpp> #include <xlnt/cell/comment.hpp>

View File

@ -26,6 +26,7 @@
#include <string> #include <string>
#include <type_traits> #include <type_traits>
#include <unordered_set> #include <unordered_set>
#include <cstdint>
#include <xlnt/cell/cell.hpp> #include <xlnt/cell/cell.hpp>
#include <xlnt/cell/hyperlink.hpp> #include <xlnt/cell/hyperlink.hpp>

View File

@ -43,6 +43,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
#include <iterator> // for std::back_inserter #include <iterator> // for std::back_inserter
#include <stdexcept> #include <stdexcept>
#include <string> #include <string>
#include <cstdint>
#include <miniz.h> #include <miniz.h>
#include <xlnt/utils/exceptions.hpp> #include <xlnt/utils/exceptions.hpp>

View File

@ -39,6 +39,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
#include <memory> #include <memory>
#include <unordered_map> #include <unordered_map>
#include <vector> #include <vector>
#include <cstdint>
#include <xlnt/xlnt_config.hpp> #include <xlnt/xlnt_config.hpp>
#include <xlnt/utils/path.hpp> #include <xlnt/utils/path.hpp>

View File

@ -22,6 +22,7 @@
// @author: see AUTHORS file // @author: see AUTHORS file
#include <cmath> #include <cmath>
#include <ctime> #include <ctime>
#include <cstdint>
#include <xlnt/utils/time.hpp> #include <xlnt/utils/time.hpp>

View File

@ -22,6 +22,7 @@
// @author: see AUTHORS file // @author: see AUTHORS file
#include <cmath> #include <cmath>
#include <ctime> #include <ctime>
#include <cstdint>
#include <xlnt/utils/timedelta.hpp> #include <xlnt/utils/timedelta.hpp>

View File

@ -21,6 +21,8 @@
// @license: http://www.opensource.org/licenses/mit-license.php // @license: http://www.opensource.org/licenses/mit-license.php
// @author: see AUTHORS file // @author: see AUTHORS file
#include <cstdint>
#include <xlnt/utils/datetime.hpp> #include <xlnt/utils/datetime.hpp>
#include <xlnt/utils/variant.hpp> #include <xlnt/utils/variant.hpp>
@ -42,7 +44,7 @@ variant::variant(const char *value)
{ {
} }
variant::variant(int32_t value) variant::variant(std::int32_t value)
: type_(type::i4), : type_(type::i4),
i4_value_(value) i4_value_(value)
{ {

View File

@ -25,6 +25,7 @@
#include <algorithm> #include <algorithm>
#include <cmath> #include <cmath>
#include <limits> #include <limits>
#include <cstdint>
#include <xlnt/cell/cell.hpp> #include <xlnt/cell/cell.hpp>
#include <xlnt/cell/cell_reference.hpp> #include <xlnt/cell/cell_reference.hpp>

View File

@ -21,6 +21,8 @@
// @license: http://www.opensource.org/licenses/mit-license.php // @license: http://www.opensource.org/licenses/mit-license.php
// @author: see AUTHORS file // @author: see AUTHORS file
#include <cstdint>
#include <xlnt/utils/variant.hpp> #include <xlnt/utils/variant.hpp>
#include <helpers/test_suite.hpp> #include <helpers/test_suite.hpp>