This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/16459] endian.h does not define byte-order conversion functions
- From: "neleai at seznam dot cz" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 16 Jan 2014 20:51:00 +0000
- Subject: [Bug libc/16459] endian.h does not define byte-order conversion functions
- Auto-submitted: auto-generated
- References: <bug-16459-131 at http dot sourceware dot org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=16459
--- Comment #3 from Ondrej Bilka <neleai at seznam dot cz> ---
There is flexibility that we could use a function-like macro instead
function. If this needs fixing then by changing pattern
# define htobe64(x) __bswap_64 (x)
# define htole64(x) (x)
to
# define htobe64 __bswap_64
# define htole64 __bkeep_64
where __bkeep_64 is a identity function like
static uint64_t
__bkeep_64 (uint64_t x)
{
return x;
}
--
You are receiving this mail because:
You are on the CC list for the bug.