mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-12 16:00:59 +00:00
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:
committed by
Wouter van Oortmerssen
parent
642254bee6
commit
43611fcc0b
@@ -19,7 +19,6 @@
|
||||
|
||||
#include <map>
|
||||
// We use the basic binary writing functions from the regular FlatBuffers.
|
||||
#include "flatbuffers/flatbuffers.h"
|
||||
#include "flatbuffers/util.h"
|
||||
|
||||
#ifdef _MSC_VER
|
||||
|
||||
Reference in New Issue
Block a user