+2021-04-27 Paul Eggert <eggert@cs.ucla.edu>
+
+ libc-config: fix include problem on older Debian
+ https://lists.gnu.org/r/bug-gnulib/2021-04/msg00198.html
+ * lib/cdefs.h: Use __GNULIB_CDEFS, not __GLIBC__,
+ to determine whether to include the bits/* files.
+ * lib/libc-config.h (__WORDSIZE): Remove.
+ (__GNULIB_CDEFS): New macro.
+
2021-04-26 Paul Eggert <eggert@cs.ucla.edu>
gnulib-tool: port better to current Autoconf
[!!sizeof (struct { int __error_if_negative: (expr) ? 2 : -1; })]
#endif
-/* The #ifndef lets Gnulib avoid including these on non-glibc
- platforms, where the includes typically do not exist. */
-#ifdef __GLIBC__
+/* Gnulib avoids including these, as they don't work on non-glibc or
+ older glibc platforms. */
+#ifndef __GNULIB_CDEFS
# include <bits/wordsize.h>
# include <bits/long-double.h>
#endif
# ifndef _FEATURES_H
# define _FEATURES_H 1
# endif
-/* Define __WORDSIZE so that <cdefs.h> does not attempt to include
- nonexistent files. Make it a syntax error, since Gnulib does not
- use __WORDSIZE now, and if Gnulib uses it later the syntax error
- will let us know that __WORDSIZE needs configuring. */
-# ifndef __WORDSIZE
-# define __WORDSIZE %%%
-# endif
+/* Define __GNULIB_CDEFS so that <cdefs.h> does not attempt to include
+ nonexistent files. */
+# define __GNULIB_CDEFS
/* Undef the macros unconditionally defined by our copy of glibc
<sys/cdefs.h>, so that they do not clash with any system-defined
versions. */