diff --git a/include/flatbuffers/flatbuffers.h b/include/flatbuffers/flatbuffers.h index f89c4d62a..c166e4b97 100644 --- a/include/flatbuffers/flatbuffers.h +++ b/include/flatbuffers/flatbuffers.h @@ -75,6 +75,9 @@ // The wire format uses a little endian encoding (since that's efficient for // the common platforms). +#if defined(__s390x__) + #define FLATBUFFERS_LITTLEENDIAN 0 +#endif // __s390x__ #if !defined(FLATBUFFERS_LITTLEENDIAN) #if defined(__GNUC__) || defined(__clang__) #ifdef __BIG_ENDIAN__