Add a little paranoia here to ensure endianess is set correctly.

This commit is contained in:
Brian Behlendorf 2009-07-14 14:28:04 -07:00
parent 06dea10380
commit b11b08ed64

View File

@ -73,7 +73,11 @@ extern "C" {
#endif
#if defined(_LITTLE_ENDIAN) && defined(_BIG_ENDIAN)
#error "Both _LITTLE_ENDIAN and __BIG_ENDIAN are defined"
#error "Both _LITTLE_ENDIAN and _BIG_ENDIAN are defined"
#endif
#if !defined(_LITTLE_ENDIAN) && !defined(_BIG_ENDIAN)
#error "Neither _LITTLE_ENDIAN or _BIG_ENDIAN are defined"
#endif
#ifdef __cplusplus