make error on debian 10 stbi__g_failure_reason
to get it compiled over current git 402398c3
diff --git a/src/stb_image.h b/src/stb_image.h
index 5186d4d..d47e5fb 100644
--- a/src/stb_image.h
+++ b/src/stb_image.h
@@ -8,7 +8,11 @@ unsigned char * stbi_zlib_compress(unsigned char *data, int data_len, int *out_l
stb_image - v2.23 - public domain image loader - http://nothings.org/stb_image.h
*/
+#ifdef STB_IMAGE_IMPLEMENTATION
const char *stbi__g_failure_reason;
+#else
+extern const char *stbi__g_failure_reason;
+#endif
enum
{
else stbi__g_failure_reason is seen multiple times defined with gcc (Debian 10.1.0-6) 10.1.0
Edited by philippe lhardy