Make the JSON library ambiently available.

This commit is contained in:
Par Winzell 2018-10-13 19:22:13 -07:00
parent 2e03a3cdea
commit 2a4da70de0
3 changed files with 10 additions and 9 deletions

View File

@ -29,4 +29,13 @@
#include "mathfu.hpp"
// give all modules access to our tweaked JSON
#include <json.hpp>
#include <fifo_map.hpp>
template<class K, class V, class ignore, class A>
using workaround_fifo_map = nlohmann::fifo_map<K, V, nlohmann::fifo_map_compare<K>, A>;
using json = nlohmann::basic_json<workaround_fifo_map>;
extern bool verboseOutput;

View File

@ -19,7 +19,7 @@
#include <cassert>
#include <cmath>
#include "gltf/Raw2Gltf.hpp"
#include "FBX2glTF.h"
#include "utils/File_Utils.hpp"
#include "utils/String_Utils.hpp"

View File

@ -16,14 +16,6 @@
#undef ERROR
#include <draco/compression/encode.h>
#include <json.hpp>
#include <fifo_map.hpp>
template<class K, class V, class ignore, class A>
using workaround_fifo_map = nlohmann::fifo_map<K, V, nlohmann::fifo_map_compare<K>, A>;
using json = nlohmann::basic_json<workaround_fifo_map>;
#include "FBX2glTF.h"
#include "raw/RawModel.hpp"