Guard STB_IMAGE_IMPLEMENTATION
This is to avoid re-defining stb_image.h implementation when using
astc as a library in a project that also includes stb_image.h
#include "softfloat.h"
#include <stdio.h>
-#define STB_IMAGE_IMPLEMENTATION
#define STBI_NO_PSD
#define STBI_NO_PIC
#define STBI_NO_PNM
+#ifndef NO_STB_IMAGE_IMPLEMENTATION
+#define STB_IMAGE_IMPLEMENTATION
+#endif
#include "stb_image.h"
astc_codec_image * load_image_with_stb(const char *filename, int padding, int *result)
