]> Savannah Git Hosting - gnulib.git/commitdiff
stddef: Generalize tcc workaround to other compilers.
authorBruno Haible <bruno@clisp.org>
Thu, 4 Mar 2021 23:21:53 +0000 (00:21 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 4 Mar 2021 23:21:53 +0000 (00:21 +0100)
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.

ChangeLog
doc/posix-headers/stddef.texi
lib/stddef.in.h

index 50d247fac0919fa3cd37d278ea9a8b792664aea5..0873cde039f878552b891baa5d5aaf543a7d8cc2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+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
index ba27fa8d9409acbff5e6e0687a8b437716f7748e..fe7ed26c9bc8fd1d2ab2fc379924ab4b93e724f8 100644 (file)
@@ -29,8 +29,8 @@ of a pointer:
 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:
index 590e12c77ee039a46a7279baaa6451e45dec7cc0..a1fc80c7e7c2248e63ea09757de66b939b89873a 100644 (file)
 #  @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