diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-03-21 11:52:31 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-03-21 11:52:31 -0400 |
commit | ef0aef16961508075249a6206dc0e9a9ac27d81c (patch) | |
tree | cc98d97f828319dfd8979490c678750336feae47 /src | |
parent | 54490a29006529f7ceb4dc0514a075f9f4175621 (diff) | |
download | bfs-ef0aef16961508075249a6206dc0e9a9ac27d81c.tar.xz |
bit: Check __BYTE_ORDER__ for the native endian
__ORDER_NATIVE_ENDIAN__ is not a thing.
Diffstat (limited to 'src')
-rw-r--r-- | src/bit.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -167,8 +167,8 @@ #ifdef __STDC_ENDIAN_NATIVE__ # define ENDIAN_NATIVE __STDC_ENDIAN_NATIVE__ -#elif defined(__ORDER_NATIVE_ENDIAN__) -# define ENDIAN_NATIVE __ORDER_NATIVE_ENDIAN__ +#elif defined(__BYTE_ORDER__) +# define ENDIAN_NATIVE __BYTE_ORDER__ #else # define ENDIAN_NATIVE 0 #endif |