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

Include <cstdint> for fixed-width integers in API headers #517

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

musicinmybrain
Copy link
Contributor

At least in the API headers, include <cstdint> everywhere that fixed-width integer types int32_t, uint32_t, or uint64_t are used. Including headers everywhere they are used avoids relying on indirectly including them via the C++ standard library, which tends to break with new compiler versions. This change doesn’t implement that idea project-wide even for <cstdint>, let alone in general, but it is enough to fix failure to build with GCC 15 (as observed in Fedora).

At least in the API headers, include <cstdint> everywhere that
fixed-width integer types `int32_t`, `uint32_t`, or `uint64_t` are used.
Including headers everywhere they are used avoids relying on indirectly
including them via the C++ standard library, which tends to break with
new compiler versions. This change doesn’t implement that idea
project-wide even for `<cstdint>`, let alone in general, but it is
enough to fix failure to build with GCC 15.
Copy link
Member

@matz-e matz-e left a comment

Choose a reason for hiding this comment

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

Thanks! BTW, I think that future development of this has moved into the @openbraininstitute organization?

@WeinaJi
Copy link

WeinaJi commented Jan 16, 2025

Thanks! BTW, I think that future development of this has moved into the @openbraininstitute organization?

Yes, it is now https://github.com/openbraininstitute/morphio @eleftherioszisis

@musicinmybrain
Copy link
Contributor Author

Thanks! BTW, I think that future development of this has moved into the @openbraininstitute organization?

Yes, it is now https://github.com/openbraininstitute/morphio @eleftherioszisis

Ah, thank you!

  1. I replicated this PR at Include <cstdint> for fixed-width integers in API headers openbraininstitute/MorphIO#1.
  2. I updated the URL in Fedora’s morphio package – at least in Rawhide / future Fedora 42.
  3. I verified that https://release-monitoring.org/project/60593/ is tracking PyPI releases and therefore doesn’t need updating.

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.

3 participants