refactor flatbuffers.h and util.h so FlexBuffers do not depend on flatbuffers.h (#4331)

FlexBuffers are actually completely unrelated to FlatBuffers and can be used separately.
However, since they utilize several utility functions from flatbuffer.h, they require this header file, which creates unreasonable dependency.
By moving those utility functions to separate base header, both libraries can use same code but still be independent
This commit is contained in:
AntonYudintsev
2017-06-02 20:26:11 +03:00
committed by Wouter van Oortmerssen
parent 642254bee6
commit 43611fcc0b
4 changed files with 178 additions and 171 deletions

View File

@@ -40,7 +40,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include "flatbuffers/flatbuffers.h"
#include "flatbuffers/base.h"
namespace flatbuffers {