diff --git a/tiny_gltf.h b/tiny_gltf.h index 2fd3e90..3ce808d 100644 --- a/tiny_gltf.h +++ b/tiny_gltf.h @@ -1538,6 +1538,7 @@ class TinyGLTF { #ifndef TINYGLTF_USE_RAPIDJSON #include "json.hpp" #else +#ifndef TINYGLTF_NO_INCLUDE_RAPIDJSON #include "document.h" #include "prettywriter.h" #include "rapidjson.h" @@ -1545,6 +1546,7 @@ class TinyGLTF { #include "writer.h" #endif #endif +#endif #ifdef TINYGLTF_ENABLE_DRACO #include "draco/compression/decode.h"