]> Savannah Git Hosting - gnulib.git/commit
endian: port better to Android NDK r26
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 4 Jun 2024 18:50:07 +0000 (11:50 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 4 Jun 2024 18:50:30 +0000 (11:50 -0700)
commit04445460de095884f53170937d5733e74daf2552
tree735adc8614fc283449354fa0ef65e0fb689d475a
parentc41b3f92e3b0e9bd42d0ac05d80f3d23b00b28d2
endian: port better to Android NDK r26

* lib/endian.in.h (be16toh, be32toh, be64toh, htobe16, htobe32)
(htobe64, le16toh, le32toh, le64toh, htole16, htole32, htole64):
When @HAVE_ENDIAN_H@, define each NAME to rpl_NAME so that they
don’t interact incorrectly with system-defined implementations.
Problem reported by Po Lu for Android NDK r26 in:
https://lists.gnu.org/r/bug-gnulib/2024-06/msg00040.html
and this patch is an updated version of Collin Funk’s patch in:
https://lists.gnu.org/r/bug-gnulib/2024-06/msg00041.html
ChangeLog
lib/endian.in.h