Merge pull request #35 from Sak32009/patch-stb-image-resize2-as-static

compile stb_image_resize2 as static library
This commit is contained in:
Detanup01 2024-09-02 10:46:35 +02:00 committed by GitHub
commit dcc1a5c63f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -17,14 +17,17 @@
#include "dll/local_storage.h"
#if defined(__WINDOWS__)
// NOTE: stb_image_write
#define STBIW_WINDOWS_UTF8
// NOTE: stb_image
#define STBI_WINDOWS_UTF8
#endif
#define STB_IMAGE_IMPLEMENTATION
#define STB_IMAGE_STATIC
#define STBI_ONLY_PNG
#define STBI_ONLY_JPEG
#if defined(__WINDOWS__)
#define STBI_WINDOWS_UTF8
#define STBIW_WINDOWS_UTF8
#endif
#include "stb/stb_image.h"
#define STB_IMAGE_WRITE_IMPLEMENTATION
@ -32,6 +35,7 @@
#include "stb/stb_image_write.h"
#define STB_IMAGE_RESIZE_IMPLEMENTATION
#define STB_IMAGE_RESIZE_STATIC
#include "stb/stb_image_resize2.h"
struct File_Data {