diff options
| author | Collin Funk <collin.funk1@gmail.com> | 2025-07-04 20:52:37 -0700 |
|---|---|---|
| committer | Collin Funk <collin.funk1@gmail.com> | 2025-07-04 20:52:37 -0700 |
| commit | e34a79a03469d60edc31965b763654ddfa2564c7 (patch) | |
| tree | 668697e83d5d36ca433dac363885b7decba707b6 /src/blake2/blake2-impl.h | |
| parent | maint: prefer endian.h macros to WORDS_BIGENDIAN (diff) | |
| download | coreutils-e34a79a03469d60edc31965b763654ddfa2564c7.tar.gz coreutils-e34a79a03469d60edc31965b763654ddfa2564c7.zip | |
maint: prefer endian.h macros to WORDS_BIGENDIAN, part 2
* src/blake2/blake2-impl.h: Include endian.h. Use BYTE_ORDER and
LITTLE_ENDIAN instead of WORDS_BIGENDIAN.
Diffstat (limited to 'src/blake2/blake2-impl.h')
| -rw-r--r-- | src/blake2/blake2-impl.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/blake2/blake2-impl.h b/src/blake2/blake2-impl.h index 02a1b8fec..bddd4f884 100644 --- a/src/blake2/blake2-impl.h +++ b/src/blake2/blake2-impl.h @@ -15,7 +15,8 @@ #ifndef BLAKE2_IMPL_H #define BLAKE2_IMPL_H -#ifndef WORDS_BIGENDIAN +#include <endian.h> +#if BYTE_ORDER == LITTLE_ENDIAN # define NATIVE_LITTLE_ENDIAN 1 #endif |
