From b13cb35f63a9e28898a86c77c657ddb2f8e638cb Mon Sep 17 00:00:00 2001 From: issam3105 <67145992+issam3105@users.noreply.github.com> Date: Mon, 11 Sep 2023 17:06:55 +0200 Subject: [PATCH] Prevent the export of stb functions (#81) I encountered linking issues when the executable was using other libraries that also utilized stb --- src/image_decode.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/image_decode.cpp b/src/image_decode.cpp index 82d1789..755fb7d 100644 --- a/src/image_decode.cpp +++ b/src/image_decode.cpp @@ -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 BX_PRAGMA_DIAGNOSTIC_POP();