]> Savannah Git Hosting - gnulib.git/commitdiff
stddef: Fix __need_wint_t handling in case of two stddef.h overrides.
authorBruno Haible <bruno@clisp.org>
Sat, 1 Apr 2023 08:56:40 +0000 (10:56 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 1 Apr 2023 08:56:40 +0000 (10:56 +0200)
* lib/stddef.in.h: Replace _GL_STDDEF_WINT_T with a symbol that depends
on the @GUARD_PREFIX@.

ChangeLog
lib/stddef.in.h

index b358a707cf6856c1ef01eeeb7a7fd1761b3b34dc..eea37f348e40a11b93a79bb889f7d80e015ee999 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-04-01  Bruno Haible  <bruno@clisp.org>
+
+       stddef: Fix __need_wint_t handling in case of two stddef.h overrides.
+       * lib/stddef.in.h: Replace _GL_STDDEF_WINT_T with a symbol that depends
+       on the @GUARD_PREFIX@.
+
 2023-03-31  Bruno Haible  <bruno@clisp.org>
 
        vasnwprintf: Fix crash upon conversion failure when processing %s.
index c7ce608b982ad2f14aa07666a1aa11a7d670eac7..ddbb74cedb8a3d5a349f202d65c1312e02c2a56f 100644 (file)
@@ -37,9 +37,9 @@
    remember if special invocation has ever been used to obtain wint_t,
    in which case we need to clean up NULL yet again.  */
 
-# if !(defined _@GUARD_PREFIX@_STDDEF_H && defined _GL_STDDEF_WINT_T)
+# if !(defined _@GUARD_PREFIX@_STDDEF_H && defined _@GUARD_PREFIX@_STDDEF_WINT_T)
 #  ifdef __need_wint_t
-#   define _GL_STDDEF_WINT_T
+#   define _@GUARD_PREFIX@_STDDEF_WINT_T
 #  endif
 #  @INCLUDE_NEXT@ @NEXT_STDDEF_H@
    /* On TinyCC, make sure that the macros that indicate the special invocation
@@ -80,7 +80,7 @@ typedef long max_align_t;
 
 /* On NetBSD 5.0, the definition of NULL lacks proper parentheses.  */
 #  if (@REPLACE_NULL@ \
-       && (!defined _@GUARD_PREFIX@_STDDEF_H || defined _GL_STDDEF_WINT_T))
+       && (!defined _@GUARD_PREFIX@_STDDEF_H || defined _@GUARD_PREFIX@_STDDEF_WINT_T))
 #   undef NULL
 #   ifdef __cplusplus
    /* ISO C++ says that the macro NULL must expand to an integer constant