Prevent the export of stb functions (#81)

I encountered linking issues when the executable was using other libraries that also utilized stb
This commit is contained in:
issam3105
2023-09-11 17:06:55 +02:00
committed by GitHub
parent ec02df824a
commit b13cb35f63

View File

@@ -67,6 +67,7 @@ BX_PRAGMA_DIAGNOSTIC_IGNORED_GCC("-Wimplicit-fallthrough");
#define STBI_REALLOC(_ptr, _size) lodepng_realloc(_ptr, _size)
#define STBI_FREE(_ptr) lodepng_free(_ptr)
#define STB_IMAGE_IMPLEMENTATION
#define STB_IMAGE_STATIC
#include <stb/stb_image.h>
BX_PRAGMA_DIAGNOSTIC_POP();