X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=libctf%2Fctf-endian.h;h=22aa8b6fba0bba9b72a33972ad73c4606f6632c0;hb=3804da7e07a13c14210d79de55ebfe2318421164;hp=ec177d1bdd816e4a56a406519b923bfbfaae8243;hpb=a0486bac41d6ce47f27795a5abbca5cc53ddba00;p=deliverable%2Fbinutils-gdb.git diff --git a/libctf/ctf-endian.h b/libctf/ctf-endian.h index ec177d1bdd..22aa8b6fba 100644 --- a/libctf/ctf-endian.h +++ b/libctf/ctf-endian.h @@ -1,5 +1,5 @@ /* Interface to endianness-neutrality functions. - Copyright (C) 2019 Free Software Foundation, Inc. + Copyright (C) 2019-2020 Free Software Foundation, Inc. This file is part of libctf. @@ -24,10 +24,10 @@ #include #include "swap.h" -#ifndef HAVE_ENDIAN_H +#if !defined (HAVE_ENDIAN_H) || !defined (htole64) #ifndef WORDS_BIGENDIAN -# define htole64(x) bswap_identity_64 ((x)) -# define le64toh(x) bswap_identity_64 ((x)) +# define htole64(x) (x) +# define le64toh(x) (x) #else # define htole64(x) bswap_64 ((x)) # define le64toh(x) bswap_64 ((x))