#452: conditional define BE sanity checks in brotli

This commit is contained in:
Cameron Kaiser 2017-12-02 21:11:55 -08:00
parent 515d20df86
commit dbe5530d53
1 changed files with 2 additions and 0 deletions

View File

@ -165,11 +165,13 @@ static BROTLI_INLINE reg_t BrotliRBit(reg_t input) {
X = NULL; \
}
#if !defined(__i386) && !defined(__x86_64__)
#if (BROTLI_BIG_ENDIAN == 0)
#error not compiling big endian
#endif
#if (BROTLI_64_BIT == 1)
#error not compiling 32 bit
#endif
#endif /* !defined(__i386) && !defined(__x86_64__) */
#endif /* BROTLI_DEC_PORT_H_ */