diff options
| author | Jan Kratochvil <[email protected]> | 2013-04-26 17:00:50 +0200 |
|---|---|---|
| committer | Jan Kratochvil <[email protected]> | 2013-04-26 17:00:50 +0200 |
| commit | 1704baf67698c269bc81fbaec0483e53d9709702 (patch) | |
| tree | 1c4d86e2825b96a4041fda42446512a89e47c68a /lib/system.h | |
| parent | cdaaf2153a1f40d1be080c8ff6e10767b51a1c96 (diff) | |
Unify {BE,LE}{32,64} in lib/system.h.
lib/
* system.h (LE64, BE64): Move here the definitions from
libdwfl/link_map.c.
libdwfl/
* link_map.c (BE32, BE64, LE32, LE64): Delete the definitions, move
them to lib/system.h.
Signed-off-by: Jan Kratochvil <[email protected]>
Diffstat (limited to 'lib/system.h')
| -rw-r--r-- | lib/system.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/system.h b/lib/system.h index 8367f2bc..f31cfd03 100644 --- a/lib/system.h +++ b/lib/system.h @@ -38,10 +38,14 @@ #if __BYTE_ORDER == __LITTLE_ENDIAN # define LE32(n) (n) +# define LE64(n) (n) # define BE32(n) bswap_32 (n) +# define BE64(n) bswap_64 (n) #elif __BYTE_ORDER == __BIG_ENDIAN # define BE32(n) (n) +# define BE64(n) (n) # define LE32(n) bswap_32 (n) +# define LE64(n) bswap_64 (n) #else # error "Unknown byte order" #endif |
