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

C23 compliance #100

Closed
orlitzky opened this issue Nov 22, 2024 · 2 comments
Closed

C23 compliance #100

orlitzky opened this issue Nov 22, 2024 · 2 comments

Comments

@orlitzky
Copy link

Original report: https://bugs.gentoo.org/944356

Guava defines a bool type in the obvious way, but the C23 standard now also defines bool. This leads to a build failure in -std=c23 mode that will happen by default in the next version of GCC, so it would be good to either append std=c17 to the build, or #ifdef around the bool type before then.

@osj1961
Copy link
Collaborator

osj1961 commented Jan 4, 2025

Followed the suggestion for #ifdef-ing the bool definition:
In 3dc3b1a

@osj1961 osj1961 closed this as completed Jan 4, 2025
@orlitzky
Copy link
Author

orlitzky commented Jan 5, 2025

That did the trick, thanks!

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

No branches or pull requests

2 participants