allow overriding FLATBUFFERS_MAX_ALIGNMENT

This commit is contained in:
Derek Bailey
2022-04-15 11:56:34 -07:00
parent 9d1ce9a100
commit 275b739944

View File

@@ -329,7 +329,9 @@ typedef uintmax_t largest_scalar_t;
#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
#ifndef FLATBUFFERS_MAX_ALIGNMENT
#define FLATBUFFERS_MAX_ALIGNMENT 16
#endif
/// @brief The length of a FlatBuffer file header.
static const size_t kFileIdentifierLength = 4;