Skip to content

Commit

Permalink
Add some missing includes
Browse files Browse the repository at this point in the history
Couple of files are not including <cstdint> for fixed-width integer
types such as uint32_t, breaking the build on Ubuntu 23.10 (GCC 13). So,
add the missing includes.
  • Loading branch information
skiminki committed Sep 8, 2023
1 parent 8a1860f commit 2f2b8e2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

#pragma once

#include <cstdint>
#include <string>

// clang-format off
Expand Down
1 change: 1 addition & 0 deletions src/move.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

#include "constants.h"
#include "utils.h"
#include <cstdint>

constexpr unsigned int PROMO_FLAG = 0x8; // 0b1000
constexpr unsigned int CAPTURE_FLAG = 0x4; // 0b0100
Expand Down
1 change: 1 addition & 0 deletions src/nnue.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#pragma once

#include "bitboard.h"
#include <cstdint>

class Position;

Expand Down
1 change: 1 addition & 0 deletions src/tt.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

#include "constants.h"
#include "move.h"
#include <cstdint>

enum EntryFlag : uint8_t {
TT_NONE = 0,
Expand Down

0 comments on commit 2f2b8e2

Please sign in to comment.