#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

View File

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