Suggested by Paul Eggert in
<https://lists.gnu.org/archive/html/bug-gnulib/2021-03/msg00027.html>.
* lib/stddef.in.h: Undefine the __need_* macros with all compilers.
* doc/posix-headers/stddef.texi: Mention that the TinyCC bug also exists
on macOS.
+2021-03-04 Bruno Haible <bruno@clisp.org>
+
+ stddef: Generalize tcc workaround to other compilers.
+ Suggested by Paul Eggert in
+ <https://lists.gnu.org/archive/html/bug-gnulib/2021-03/msg00027.html>.
+ * lib/stddef.in.h: Undefine the __need_* macros with all compilers.
+ * doc/posix-headers/stddef.texi: Mention that the TinyCC bug also exists
+ on macOS.
+
2021-03-04 Paul Eggert <eggert@cs.ucla.edu>
stdalign: port to tcc + glibc
AIX 7.2 with xlc in 64-bit mode.
@item
-When this header file is provided by TinyCC 0.9.27 on glibc systems, it does
-not fulfil the expectations of other glibc header files.
+When this header file is provided by TinyCC 0.9.27 on glibc or macOS systems,
+it does not fulfil the expectations of other system header files.
@end itemize
Portability problems not fixed by Gnulib:
# @INCLUDE_NEXT@ @NEXT_STDDEF_H@
/* On TinyCC, make sure that the macros that indicate the special invocation
convention get undefined. */
-# ifdef __TINYC__
-# undef __need_wchar_t
-# undef __need_size_t
-# undef __need_ptrdiff_t
-# undef __need_NULL
-# undef __need_wint_t
-# endif
+# undef __need_wchar_t
+# undef __need_size_t
+# undef __need_ptrdiff_t
+# undef __need_NULL
+# undef __need_wint_t
# endif
#else