Преглед изворни кода

Prevent the export of stb functions (#81)

I encountered linking issues when the executable was using other libraries that also utilized stb
issam3105 пре 2 година
родитељ
комит
b13cb35f63
1 измењених фајлова са 1 додато и 0 уклоњено
  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_REALLOC(_ptr, _size) lodepng_realloc(_ptr, _size)
 #define STBI_FREE(_ptr)           lodepng_free(_ptr)
 #define STBI_FREE(_ptr)           lodepng_free(_ptr)
 #define STB_IMAGE_IMPLEMENTATION
 #define STB_IMAGE_IMPLEMENTATION
+#define STB_IMAGE_STATIC
 #include <stb/stb_image.h>
 #include <stb/stb_image.h>
 BX_PRAGMA_DIAGNOSTIC_POP();
 BX_PRAGMA_DIAGNOSTIC_POP();