Skip to content

Commit

Permalink
Merge pull request #35 from Sak32009/patch-stb-image-resize2-as-static
Browse files Browse the repository at this point in the history
compile stb_image_resize2 as static library
  • Loading branch information
Detanup01 authored Sep 2, 2024
2 parents 1c012c9 + b3582bf commit dcc1a5c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions dll/local_storage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,25 @@

#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
#define STB_IMAGE_WRITE_STATIC
#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 {
Expand Down

0 comments on commit dcc1a5c

Please sign in to comment.