Skip to content

Commit

Permalink
Add missing <cstdint> includes (#273)
Browse files Browse the repository at this point in the history
`uint8_t`, `uint32_t` are used without including `<cstdint>`
which fails to build w/ GCC 15 after a change in libstdc++ [0]

[0] https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=3a817a4a5a6d94da9127af3be9f84a74e3076ee2

Signed-off-by: Sam James <[email protected]>
  • Loading branch information
thesamesam authored Aug 16, 2024
1 parent 12b6263 commit ebf66e3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Character.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#ifndef CHARACTER_HPP
#define CHARACTER_HPP

#include <cstdint>

class Character {
public:
Expand Down
1 change: 1 addition & 0 deletions src/HashFunction.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#ifndef HASHFUNCTION_HPP
#define HASHFUNCTION_HPP

#include <cstdint>
#include <istream>
#include <memory>
#include <string>
Expand Down
1 change: 1 addition & 0 deletions src/utility.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <config.h>
#endif

#include <cstdint>
#include <iomanip>
#include <functional>
#include <memory>
Expand Down

0 comments on commit ebf66e3

Please sign in to comment.