]> Savannah Git Hosting - gnulib.git/commit
endian: Make sure system headers can be included.
authorCollin Funk <collin.funk1@gmail.com>
Sat, 18 May 2024 13:36:55 +0000 (06:36 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Sat, 18 May 2024 21:55:23 +0000 (14:55 -0700)
commit83dd4db866cc5dde2fddcf1944f3b5cc3732e48e
tree7498fa35fdc4c8ed9da89e5a94cb8f2b0b12d841
parent036cabf60010269a92e82272c52fbbd37c8fe59f
endian: Make sure system headers can be included.

Reported by Bruno Haible in
<https://lists.gnu.org/archive/html/bug-gnulib/2024-05/msg00290.html>.

* lib/endian.in.h (be16toh, be32toh, be64toh, htobe16, htobe32, htobe64)
(le16toh, le32toh, le64toh, htole16, htole32, htole64): Don't define
functions if the system has working versions.
* m4/endian_h.m4 (gl_ENDIAN_H): Separate checks for stdint types and
proper macro/function definitions.
* modules/endian (Depends-on): Add include_next. Update module
dependency conditions.
(Makefile.am): Perform sed replacements on the header substitute.
ChangeLog
lib/endian.in.h
m4/endian_h.m4
modules/endian