Skip to content

Commit

Permalink
Fix missing cstdint on GCC 13
Browse files Browse the repository at this point in the history
Without this change the code can not be compiled with the latest GCC 13
because an error reported on `openlocationcode.cc:139:3`.

```
error: 'int64_t' was not declared in this scope
note: 'int64_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
```

The porting guide of GCC 13 explains,
that `cstdint` might need to be explicitly included:
https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes

Signed-off-by: Ferenc Géczi <[email protected]>
  • Loading branch information
Ferenc- committed Apr 9, 2024
1 parent 817c008 commit 7c4b8f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cpp/openlocationcode.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#include <algorithm>
#include <cmath>
#include <cstdint>

#include "codearea.h"

Expand Down

0 comments on commit 7c4b8f7

Please sign in to comment.