]> Savannah Git Hosting - gnulib.git/commitdiff
string: Support several gnulib-tool invocations better.
authorBruno Haible <bruno@clisp.org>
Tue, 24 Dec 2024 10:20:52 +0000 (11:20 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 24 Dec 2024 13:16:10 +0000 (14:16 +0100)
* lib/string.in.h (_GL_ALREADY_INCLUDING_STRING_H): Rename to a macro
that depends on GUARD_PREFIX.

ChangeLog
lib/string.in.h

index 62a1149468f3bfd76958d2ab5ae28ce45f43791b..5037f1bbc55a2e0e774b4d3835ba9176cf993429 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-12-24  Bruno Haible  <bruno@clisp.org>
+
+       string: Support several gnulib-tool invocations better.
+       * lib/string.in.h (_GL_ALREADY_INCLUDING_STRING_H): Rename to a macro
+       that depends on GUARD_PREFIX.
+
 2024-12-24  Bruno Haible  <bruno@clisp.org>
 
        stdio: Support several gnulib-tool invocations better.
index f5a6d8b3267a27f0404a9d19d3a70cec7de907a4..72cd7566e653ec78d4d2f85f17fa8b8fc9957339 100644 (file)
@@ -20,7 +20,7 @@
 #endif
 @PRAGMA_COLUMNS@
 
-#if defined _GL_ALREADY_INCLUDING_STRING_H
+#if defined _@GUARD_PREFIX@_ALREADY_INCLUDING_STRING_H
 /* Special invocation convention:
    - On OS X/NetBSD we have a sequence of nested includes
        <string.h> -> <strings.h> -> "string.h"
 
 #ifndef _@GUARD_PREFIX@_STRING_H
 
-#define _GL_ALREADY_INCLUDING_STRING_H
+#define _@GUARD_PREFIX@_ALREADY_INCLUDING_STRING_H
 
 /* The include_next requires a split double-inclusion guard.  */
 #@INCLUDE_NEXT@ @NEXT_STRING_H@
 
-#undef _GL_ALREADY_INCLUDING_STRING_H
+#undef _@GUARD_PREFIX@_ALREADY_INCLUDING_STRING_H
 
 #ifndef _@GUARD_PREFIX@_STRING_H
 #define _@GUARD_PREFIX@_STRING_H