From b3582bf31ceb4378b79d69d03ab5a042ebbeaea0 Mon Sep 17 00:00:00 2001 From: Sak32009 Date: Sun, 1 Sep 2024 08:17:23 +0200 Subject: [PATCH] compile stb_image_resize2 as static library --- dll/local_storage.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/dll/local_storage.cpp b/dll/local_storage.cpp index e15da3dd9..168500380 100644 --- a/dll/local_storage.cpp +++ b/dll/local_storage.cpp @@ -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 {