add namespace prefix in FLATBUFFERS_MAX_BUFFER_SIZE (#5629)

This commit is contained in:
FujiZ 2019-11-19 04:02:14 +08:00 committed by Wouter van Oortmerssen
parent 6beb9f49cb
commit ff3781dc2d
1 changed files with 1 additions and 1 deletions

View File

@ -296,7 +296,7 @@ typedef uint16_t voffset_t;
typedef uintmax_t largest_scalar_t;
// In 32bits, this evaluates to 2GB - 1
#define FLATBUFFERS_MAX_BUFFER_SIZE ((1ULL << (sizeof(soffset_t) * 8 - 1)) - 1)
#define FLATBUFFERS_MAX_BUFFER_SIZE ((1ULL << (sizeof(::flatbuffers::soffset_t) * 8 - 1)) - 1)
// We support aligning the contents of buffers up to this size.
#define FLATBUFFERS_MAX_ALIGNMENT 16