Fix for when json and stb is aready used in project v2

This commit is contained in:
kroko 2019-03-03 01:28:45 +02:00
parent f4b6d11abc
commit 6a0d4c57b1

View File

@ -1087,20 +1087,16 @@ class TinyGLTF {
#endif
#ifndef TINYGLTF_NO_STB_IMAGE
#ifndef STB_IMAGE_IMPLEMENTATION
#ifndef TINYGLTF_BYPASS_INCLUDE_STB_IMAGE
#include "stb_image.h"
#endif
#endif
#endif
#ifndef TINYGLTF_NO_STB_IMAGE_WRITE
#ifndef STB_IMAGE_WRITE_IMPLEMENTATION
#ifndef TINYGLTF_BYPASS_INCLUDE_STB_IMAGE
#include "stb_image_write.h"
#endif
#endif
#endif
#ifdef __clang__
#pragma clang diagnostic pop