]> 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, 8 Apr 2023 10:55:19 +0000 (12:55 +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 b40d7ed7575a06459815f8333537b9fae3b0451a..25b10419cae0625cb0bfd4c6a57b4ff0534ffc76 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-30  Bruno Haible  <bruno@clisp.org>
 
        snprintf: Avoid autoconf warning regarding gl_PRINTF_POSITIONS.
index 22a71cf381f0ca08b32d5de9e8717fb25a640dea..2f88e4c60e2f061e71326d4d42997fb2f3277604 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