1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

* string/endian.h: Define new fixed-size hto* and *toh macros only

is __USE_BSD.
This commit is contained in:
Ulrich Drepper
2008-05-21 23:39:35 +00:00
parent d8e763c60e
commit e92799fc45
2 changed files with 32 additions and 27 deletions

View File

@ -1,5 +1,8 @@
2008-05-21 Ulrich Drepper <drepper@redhat.com>
* string/endian.h: Define new fixed-size hto* and *toh macros only
is __USE_BSD.
* iconvdata/Depend: Add localedata.
2008-05-21 Samuel Thibault <samuel.thibault@ens-lyon.org>

View File

@ -56,10 +56,11 @@
#endif
#ifdef __USE_BSD
/* Conversion interfaces. */
#include <bits/byteswap.h>
# include <bits/byteswap.h>
#if __BYTE_ORDER == __LITTLE_ENDIAN
# if __BYTE_ORDER == __LITTLE_ENDIAN
# define htobe16(x) __bswap_16 (x)
# define htole16(x) (x)
# define be16toh(x) __bswap_16 (x)
@ -74,7 +75,7 @@
# define htole64(x) (x)
# define be64toh(x) __bswap_64 (x)
# define le64toh(x) (x)
#else
# else
# define htobe16(x) (x)
# define htole16(x) __bswap_16 (x)
# define be16toh(x) (x)
@ -89,6 +90,7 @@
# define htole64(x) __bswap_64 (x)
# define be64toh(x) (x)
# define le64toh(x) __bswap_64 (x)
# endif
#endif
#endif /* endian.h */