We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug build fails if STBI_NO_PNG and STBI_NO_PSD are defined but STBI_NO_PNM is not defined
lines 1798 and 1807 of stb_image.h: #if defined(STBI_NO_PNG) && defined(STBI_NO_PSD)
stbi__pnm_load() uses stbi__convert_format16() and stbi__convert_format16() uses stbi__compute_y_16()
To Reproduce #ifndef STBI_NO_PNG #define STBI_NO_PNG #endif
#ifdef STBI_NO_PNM #undef STBI_NO_PNM #endif
#ifndef STBI_NO_PSD #define STBI_NO_PSD #endif
Expected behavior allow PNM support without PNG and PSD support
Screenshots n/a
The text was updated successfully, but these errors were encountered:
Maybe you can try the following code;
#if defined(STBI_NO_PNG) && defined(STBI_NO_PSD) && !defined(STBI_NO_PNM) replace #if defined(STBI_NO_PNG) && defined(STBI_NO_PSD
Sorry, something went wrong.
解决 nothings#1469
f1e43c1
No branches or pull requests
Describe the bug
build fails if STBI_NO_PNG and STBI_NO_PSD are defined but STBI_NO_PNM is not defined
lines 1798 and 1807 of stb_image.h:
#if defined(STBI_NO_PNG) && defined(STBI_NO_PSD)
stbi__pnm_load() uses stbi__convert_format16() and stbi__convert_format16() uses stbi__compute_y_16()
To Reproduce
#ifndef STBI_NO_PNG
#define STBI_NO_PNG
#endif
#ifdef STBI_NO_PNM
#undef STBI_NO_PNM
#endif
#ifndef STBI_NO_PSD
#define STBI_NO_PSD
#endif
Expected behavior
allow PNM support without PNG and PSD support
Screenshots
n/a
The text was updated successfully, but these errors were encountered: