Added TINYGLTF_NO_INCLUDE_RAPIDJSON for consistency and because my project already used rapidjson/

This commit is contained in:
Alvaro Barua 2021-03-18 00:21:23 +00:00
parent 298c37a954
commit 3ddf8301f6

View File

@ -1538,6 +1538,7 @@ class TinyGLTF {
#ifndef TINYGLTF_USE_RAPIDJSON #ifndef TINYGLTF_USE_RAPIDJSON
#include "json.hpp" #include "json.hpp"
#else #else
#ifndef TINYGLTF_NO_INCLUDE_RAPIDJSON
#include "document.h" #include "document.h"
#include "prettywriter.h" #include "prettywriter.h"
#include "rapidjson.h" #include "rapidjson.h"
@ -1545,6 +1546,7 @@ class TinyGLTF {
#include "writer.h" #include "writer.h"
#endif #endif
#endif #endif
#endif
#ifdef TINYGLTF_ENABLE_DRACO #ifdef TINYGLTF_ENABLE_DRACO
#include "draco/compression/decode.h" #include "draco/compression/decode.h"