20 Mar
2019
20 Mar
'19
1:35 p.m.
Simo Sorce <simo@redhat.com> writes:
If it is ok to make configure if those macros are available (/usr/include/endian.h) I would use them or provide replacements that just call into the existing macros.
Sure, provided there's a reasonable portable fallback. On non-glibc systems, I think we should use __builtin_bswap64 when provided by gcc or its look-alikes. Regards, /Niels -- Niels Möller. PGP-encrypted email is preferred. Keyid 368C6677. Internet email is subject to wholesale government surveillance.