Browse Source

Prevent the export of stb functions (#81)

I encountered linking issues when the executable was using other libraries that also utilized stb
issam3105 2 years ago
parent
commit
b13cb35f63
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/image_decode.cpp

+ 1 - 0
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 <stb/stb_image.h>
 BX_PRAGMA_DIAGNOSTIC_POP();