Skip to content

Commit 0953711

Browse files
committed
Fix compilation on GCC 15 by including <cstdint> (#2545)
As per the GCC 15 porting guide, section "Header dependency changes": https://gcc.gnu.org/gcc-15/porting_to.html#header-dep-changes > Some C++ Standard Library headers have been changed to no longer include other headers that were being used internally by the library. As such, C++ programs that used standard library components without including the right headers will no longer compile. > > In particular, the following headers are used less widely within libstdc++ and may need to be included explicitly when compiling with GCC 15: > > `<stdint.h>` (for `int8_t`, `int32_t` etc.) and `<cstdint>` (for `std::int8_t`, `std::int32_t` etc.) > `<ostream>` (for `std::endl`, `std::flush` etc.) `<cstdint>` must now be explicitly included to use these types and was missing from `CharData.h`.
1 parent 7f34c9b commit 0953711

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
1313
* Fix error message HTTP response status code in image src setter
1414
* `roundRect()` shape incorrect when radii were large relative to rectangle size (#2400)
1515
* Reject loadImage when src is null or invalid (#2304)
16+
* Fix compilation on GCC 15 by including <cstdint> (#2545)
1617

1718
3.2.0
1819
==================

src/CharData.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
#pragma once
55

6+
#include <cstdint>
7+
68
namespace CharData {
79
static constexpr uint8_t Whitespace = 0x1;
810
static constexpr uint8_t Newline = 0x2;

0 commit comments

Comments
 (0)