Skip to content

Commit

Permalink
Fix build with gcc 13 by including <cstdint>
Browse files Browse the repository at this point in the history
Like other versions before, gcc 13 moved some includes around and as a
result <cstdint> is no longer transitively included [1]. Explicitly include
it for uint{32,64}_t.

[1] https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes
  • Loading branch information
heirecka committed Jan 24, 2023
1 parent 7e75484 commit fe4d03d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions table/block_based/data_block_hash_index.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

#pragma once

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

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

#pragma once

#include <cstdint>
#include <sstream>
#include <string>
#include <unordered_map>
Expand Down

0 comments on commit fe4d03d

Please sign in to comment.