* lib/byteswap.in.h: Do not include stdint.h, as stdbit.h suffices.
* modules/byteswap (Depends-on): Depend on stdbit-h, not stdint-h.
2026-03-20 Paul Eggert <eggert@cs.ucla.edu>
+ byteswap: depend on stdbit-h, not stdint-h
+ * lib/byteswap.in.h: Do not include stdint.h, as stdbit.h suffices.
+ * modules/byteswap (Depends-on): Depend on stdbit-h, not stdint-h.
+
countof-h: use countof, part 3
* lib/nproc.c, lib/regex_internal.h, lib/set-permissions.c:
* lib/strftime.c:
#error "Please include config.h first."
#endif
-/* Define this now, rather than after including stdint.h, in case
- stdint.h recursively includes us. This is for Gnulib endian.h. */
+/* Define this now, rather than after including stdbit.h, in case stdbit.h
+ recursively includes us via stdint.h. This is for Gnulib endian.h. */
#ifndef _GL_BYTESWAP_INLINE
# define _GL_BYTESWAP_INLINE _GL_INLINE
#endif
#include <stdbit.h>
-#include <stdint.h>
_GL_INLINE_HEADER_BEGIN
extern "C" {
#endif
-/* These declarations are needed if Gnulib byteswap.h -> stdint.h ->
+/* These declarations are needed if Gnulib byteswap.h -> stdbit.h -> stdint.h ->
sys/types.h -> endian.h -> Gnulib byteswap.h, the last of which is blocked
by its include guard so the functions are not yet declared. */
#ifdef _GL_BYTESWAP_INLINE
Depends-on:
gen-header
extern-inline [$GL_GENERATE_BYTESWAP_H]
-stdint-h [$GL_GENERATE_BYTESWAP_H]
+stdbit-h [$GL_GENERATE_BYTESWAP_H]
stdc_memreverse8u [$GL_GENERATE_BYTESWAP_H]
configure.ac: