mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-01-29 03:14:25 +03:00
Add a little paranoia here to ensure endianess is set correctly.
This commit is contained in:
parent
06dea10380
commit
b11b08ed64
@ -73,7 +73,11 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(_LITTLE_ENDIAN) && defined(_BIG_ENDIAN)
|
#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
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
Loading…
Reference in New Issue
Block a user