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 <stdint.h> where needed #1

Merged
merged 1 commit into from Oct 11, 2016
Merged

Conversation

tpetazzoni
Copy link
Contributor

The {u,}int{8,16,32}_t types are defined in <stdint.h>, so it should be
included when such types are used.

Not including <stdint.h> might work by accident with some C libraries
due to it being included by other headers, but it for example causes
build failures with the musl C library.

Signed-off-by: Thomas Petazzoni thomas.petazzoni@free-electrons.com

The {u,}int{8,16,32}_t types are defined in <stdint.h>, so it should be
included when such types are used.

Not including <stdint.h> might work by accident with some C libraries
due to it being included by other headers, but it for example causes
build failures with the musl C library.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
@mdrjr mdrjr merged commit 296f39b into mdrjr:master Oct 11, 2016
C-Prime90 pushed a commit to EmbER-Dev/EmbER-AmlCodec that referenced this pull request Oct 13, 2016
The {u,}int{8,16,32}_t types are defined in <stdint.h>, so it should be
included when such types are used.

Not including <stdint.h> might work by accident with some C libraries
due to it being included by other headers, but it for example causes
build failures with the musl C library.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Upstream-status: mdrjr/c2_aml_libs#1
C-Prime90 pushed a commit to EmbER-Dev/EmbER-AmlCodec that referenced this pull request Oct 13, 2016
The {u,}int{8,16,32}_t types are defined in <stdint.h>, so it should be
included when such types are used.

Not including <stdint.h> might work by accident with some C libraries
due to it being included by other headers, but it for example causes
build failures with the musl C library.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Upstream-status: mdrjr/c2_aml_libs#1
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

2 participants