From: Bruno Haible Date: Tue, 24 Dec 2024 10:15:25 +0000 (+0100) Subject: malloc-h: Support several gnulib-tool invocations better. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe929b50226665aef7d05d6d8197b650dc8ed646;p=thirdparty%2Fgnulib.git malloc-h: Support several gnulib-tool invocations better. * lib/malloc.in.h (_GL_ALREADY_INCLUDING_MALLOC_H): Rename to a macro that depends on GUARD_PREFIX. --- diff --git a/ChangeLog b/ChangeLog index d7793aab69..c87b7366e0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-12-24 Bruno Haible + + malloc-h: Support several gnulib-tool invocations better. + * lib/malloc.in.h (_GL_ALREADY_INCLUDING_MALLOC_H): Rename to a macro + that depends on GUARD_PREFIX. + 2024-12-24 Bruno Haible locale: Support several gnulib-tool invocations better. diff --git a/lib/malloc.in.h b/lib/malloc.in.h index a22a4a8a39..ed90ea36ad 100644 --- a/lib/malloc.in.h +++ b/lib/malloc.in.h @@ -19,7 +19,7 @@ #endif @PRAGMA_COLUMNS@ -#if defined _GL_ALREADY_INCLUDING_MALLOC_H +#if defined _@GUARD_PREFIX@_ALREADY_INCLUDING_MALLOC_H /* Special invocation convention: - On Android we have a sequence of nested includes -> -> -> -> -> @@ -34,14 +34,14 @@ #ifndef _@GUARD_PREFIX@_MALLOC_H -#define _GL_ALREADY_INCLUDING_MALLOC_H +#define _@GUARD_PREFIX@_ALREADY_INCLUDING_MALLOC_H /* The include_next requires a split double-inclusion guard. */ #if @HAVE_MALLOC_H@ # @INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ @NEXT_AS_FIRST_DIRECTIVE_MALLOC_H@ #endif -#undef _GL_ALREADY_INCLUDING_MALLOC_H +#undef _@GUARD_PREFIX@_ALREADY_INCLUDING_MALLOC_H #ifndef _@GUARD_PREFIX@_MALLOC_H #define _@GUARD_PREFIX@_MALLOC_H