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 stdio.h for vsnprintf in buffer.h #693

Merged
merged 1 commit into from
Aug 21, 2024

Conversation

hoodmane
Copy link
Contributor

vsnprintf is defined in stdio.h:
https://github.com/bminor/glibc/blob/734e7f91e752f44984fe42c2384c23a0290b6e56/libio/stdio.h#L389

All the examples include both stdio.h and stdarg.h when using vsnprintf. For whatever reason, on the emscripten target there is an error due to missing vsnprintf but on other targets there is no error.

`vsnprintf` is defined in `stdio.h`:
https://github.com/bminor/glibc/blob/734e7f91e752f44984fe42c2384c23a0290b6e56/libio/stdio.h#L389

All the examples include both `stdio.h` and `stdarg.h` when using `vsnprintf`.
For whatever reason, on the emscripten target there is an error due to missing
`vsnprintf` but on other targets there is no error.
@wjakob
Copy link
Owner

wjakob commented Aug 21, 2024

Okay, sure!

@wjakob wjakob merged commit 517f3ee into wjakob:master Aug 21, 2024
24 checks passed
@hoodmane hoodmane deleted the include-stio-for-vsnprintf branch August 21, 2024 09:02
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.

2 participants