Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing cstdint on GCC 13 #574

Merged
merged 1 commit into from
Apr 10, 2024
Merged

Fix missing cstdint on GCC 13 #574

merged 1 commit into from
Apr 10, 2024

Conversation

Ferenc-
Copy link
Contributor

@Ferenc- Ferenc- commented Apr 9, 2024

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

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 <ferenc.gm@gmail.com>
@Ferenc-
Copy link
Contributor Author

Ferenc- commented Apr 9, 2024

@drinckes @bocops For your kind review.

Copy link
Contributor

@bocops bocops left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me - necessary change is explicitly mentioned in "Porting to GCC 13" instructions as mentioned in PR.

@bocops
Copy link
Contributor

bocops commented Apr 9, 2024

@Ferenc- Thanks for the mention, I reviewed the change which looks OK to me.

However, I'm just a contributor to this repository, and haven't seen any Googler around for quite a while. Pinging some of the Googlers that have worked on this in the past: @zongweil @bilst

@grah76 grah76 merged commit 347acb4 into google:main Apr 10, 2024
5 of 17 checks passed
@Ferenc-
Copy link
Contributor Author

Ferenc- commented Apr 11, 2024

@grah76 Thank you so much for merging! May I ask whether there is a plan to release a new version in the near future?

@grah76
Copy link
Contributor

grah76 commented Apr 11, 2024

@Ferenc- Thanks for the contribution!!. We don't have any plans as of now. But we will keep you posted whenever we release a new version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants