Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed compilation failure on gcc 13, added includes, tests fine #710

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions include/xlnt/cell/phonetic_run.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#pragma once

#include <string>
#include <cstdint>

#include <xlnt/xlnt_config.hpp>

Expand All @@ -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;
Expand Down
1 change: 1 addition & 0 deletions include/xlnt/utils/variant.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

#include <string>
#include <vector>
#include <cstdint>

#include <xlnt/xlnt_config.hpp>

Expand Down
1 change: 1 addition & 0 deletions include/xlnt/worksheet/worksheet.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include <string>
#include <unordered_map>
#include <vector>
#include <cstdint>

#include <xlnt/xlnt_config.hpp>
#include <xlnt/cell/index_types.hpp>
Expand Down
1 change: 1 addition & 0 deletions python/xlntpyarrow.lib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
// @author: see AUTHORS file

#include <exception>
#include <cstdint>
#include <arrow/api.h>
#include <arrow/python/pyarrow.h>
#include <pybind11/pybind11.h>
Expand Down
1 change: 1 addition & 0 deletions source/detail/cryptography/aes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

#include <algorithm>
#include <array>
#include <cstdint>
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down
1 change: 1 addition & 0 deletions source/detail/cryptography/compound_document.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include <locale>
#include <string>
#include <vector>
#include <cstdint>

#include <xlnt/utils/exceptions.hpp>
#include <detail/binary.hpp>
Expand Down
1 change: 1 addition & 0 deletions source/detail/cryptography/compound_document.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include <memory>
#include <string>
#include <unordered_map>
#include <cstdint>

#include <detail/binary.hpp>
#include <detail/unicode.hpp>
Expand Down
1 change: 1 addition & 0 deletions source/detail/cryptography/encryption_info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
// @author: see AUTHORS file

#include <array>
#include <cstdint>

#include <detail/binary.hpp>
#include <detail/cryptography/aes.hpp>
Expand Down
1 change: 1 addition & 0 deletions source/detail/cryptography/sha.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <iomanip>
#include <sstream>
#include <string>
#include <cstdint>

#include <detail/cryptography/sha.hpp>

Expand Down
2 changes: 2 additions & 0 deletions source/detail/cryptography/xlsx_crypto_producer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
// @license: http://www.opensource.org/licenses/mit-license.php
// @author: see AUTHORS file

#include <cstdint>

#include <xlnt/utils/exceptions.hpp>
#include <detail/constants.hpp>
#include <detail/cryptography/aes.hpp>
Expand Down
1 change: 1 addition & 0 deletions source/detail/serialization/xlsx_consumer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <numeric> // for std::accumulate
#include <sstream>
#include <unordered_map>
#include <cstdint>

#include <xlnt/cell/cell.hpp>
#include <xlnt/cell/comment.hpp>
Expand Down
1 change: 1 addition & 0 deletions source/detail/serialization/xlsx_producer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <string>
#include <type_traits>
#include <unordered_set>
#include <cstdint>

#include <xlnt/cell/cell.hpp>
#include <xlnt/cell/hyperlink.hpp>
Expand Down
1 change: 1 addition & 0 deletions source/detail/serialization/zstream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
#include <iterator> // for std::back_inserter
#include <stdexcept>
#include <string>
#include <cstdint>
#include <miniz.h>

#include <xlnt/utils/exceptions.hpp>
Expand Down
1 change: 1 addition & 0 deletions source/detail/serialization/zstream.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
#include <memory>
#include <unordered_map>
#include <vector>
#include <cstdint>

#include <xlnt/xlnt_config.hpp>
#include <xlnt/utils/path.hpp>
Expand Down
1 change: 1 addition & 0 deletions source/utils/time.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
// @author: see AUTHORS file
#include <cmath>
#include <ctime>
#include <cstdint>

#include <xlnt/utils/time.hpp>

Expand Down
1 change: 1 addition & 0 deletions source/utils/timedelta.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
// @author: see AUTHORS file
#include <cmath>
#include <ctime>
#include <cstdint>

#include <xlnt/utils/timedelta.hpp>

Expand Down
4 changes: 3 additions & 1 deletion source/utils/variant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
// @license: http://www.opensource.org/licenses/mit-license.php
// @author: see AUTHORS file

#include <cstdint>

#include <xlnt/utils/datetime.hpp>
#include <xlnt/utils/variant.hpp>

Expand All @@ -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)
{
Expand Down
1 change: 1 addition & 0 deletions source/worksheet/worksheet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <algorithm>
#include <cmath>
#include <limits>
#include <cstdint>

#include <xlnt/cell/cell.hpp>
#include <xlnt/cell/cell_reference.hpp>
Expand Down
2 changes: 2 additions & 0 deletions tests/utils/variant_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
// @license: http://www.opensource.org/licenses/mit-license.php
// @author: see AUTHORS file

#include <cstdint>

#include <xlnt/utils/variant.hpp>
#include <helpers/test_suite.hpp>

Expand Down