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

stb_image_write: fix stbi_write_hdr_to_func undefined when STBI_WRITE_NO_STDIO defined #1699

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

Conversation

craftablescience
Copy link

The implementation of stbi_write_hdr_to_func is not compiled when STBI_WRITE_NO_STDIO is defined, even though the function signature is still present in the header. This appears to be a typo/oversight, and I have changed the location of the #ifndef guard so it matches the other image formats. I have tested this code and the header now compiles with STBI_WRITE_NO_STDIO while using stbi_write_hdr_to_func where it did not before.

@craftablescience craftablescience changed the title fix: stbi_write_hdr_to_func undefined when STBI_WRITE_NO_STDIO defined stb_image_write: fix stbi_write_hdr_to_func undefined when STBI_WRITE_NO_STDIO defined Oct 8, 2024
@craftablescience craftablescience force-pushed the fix/hidden-funcs branch 2 times, most recently from 25a2ff7 to c420269 Compare October 29, 2024 23:29
@craftablescience
Copy link
Author

Fixed the spacing to match code style

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.

1 participant