mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-08-08 17:22:05 +03:00
malloc-h: Improve portability.
* lib/malloc.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE when possible. * modules/malloc-h (Makefile.am): Substitute INCLUDE_NEXT_AS_FIRST_DIRECTIVE and NEXT_AS_FIRST_DIRECTIVE_MALLOC_H.
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
2023-01-09 Bruno Haible <bruno@clisp.org>
|
||||||
|
|
||||||
|
malloc-h: Improve portability.
|
||||||
|
* lib/malloc.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE when possible.
|
||||||
|
* modules/malloc-h (Makefile.am): Substitute
|
||||||
|
INCLUDE_NEXT_AS_FIRST_DIRECTIVE and NEXT_AS_FIRST_DIRECTIVE_MALLOC_H.
|
||||||
|
|
||||||
2023-01-09 Bruno Haible <bruno@clisp.org>
|
2023-01-09 Bruno Haible <bruno@clisp.org>
|
||||||
|
|
||||||
reallocarray: Fix compilation error in C++ mode on Android.
|
reallocarray: Fix compilation error in C++ mode on Android.
|
||||||
|
@@ -27,7 +27,7 @@
|
|||||||
In this situation, in C++ mode, the declaration of memalign might be used
|
In this situation, in C++ mode, the declaration of memalign might be used
|
||||||
before it actually occurs. */
|
before it actually occurs. */
|
||||||
|
|
||||||
#@INCLUDE_NEXT@ @NEXT_MALLOC_H@
|
#@INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ @NEXT_AS_FIRST_DIRECTIVE_MALLOC_H@
|
||||||
|
|
||||||
#else
|
#else
|
||||||
/* Normal invocation convention. */
|
/* Normal invocation convention. */
|
||||||
@@ -38,7 +38,7 @@
|
|||||||
|
|
||||||
/* The include_next requires a split double-inclusion guard. */
|
/* The include_next requires a split double-inclusion guard. */
|
||||||
#if @HAVE_MALLOC_H@
|
#if @HAVE_MALLOC_H@
|
||||||
# @INCLUDE_NEXT@ @NEXT_MALLOC_H@
|
# @INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ @NEXT_AS_FIRST_DIRECTIVE_MALLOC_H@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#undef _GL_ALREADY_INCLUDING_MALLOC_H
|
#undef _GL_ALREADY_INCLUDING_MALLOC_H
|
||||||
|
@@ -26,10 +26,12 @@ malloc.h: malloc.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H
|
|||||||
@NMD@ $(AM_V_GEN)$(MKDIR_P) '%reldir%'
|
@NMD@ $(AM_V_GEN)$(MKDIR_P) '%reldir%'
|
||||||
$(gl_V_at)$(SED_HEADER_STDOUT) \
|
$(gl_V_at)$(SED_HEADER_STDOUT) \
|
||||||
-e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
|
-e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
|
||||||
|
-e 's|@''INCLUDE_NEXT_AS_FIRST_DIRECTIVE''@|$(INCLUDE_NEXT_AS_FIRST_DIRECTIVE)|g' \
|
||||||
-e 's|@''HAVE_MALLOC_H''@|$(HAVE_MALLOC_H)|g' \
|
-e 's|@''HAVE_MALLOC_H''@|$(HAVE_MALLOC_H)|g' \
|
||||||
-e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
|
-e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
|
||||||
-e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
|
-e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
|
||||||
-e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
|
-e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
|
||||||
|
-e 's|@''NEXT_AS_FIRST_DIRECTIVE_MALLOC_H''@|$(NEXT_AS_FIRST_DIRECTIVE_MALLOC_H)|g' \
|
||||||
-e 's|@''NEXT_MALLOC_H''@|$(NEXT_MALLOC_H)|g' \
|
-e 's|@''NEXT_MALLOC_H''@|$(NEXT_MALLOC_H)|g' \
|
||||||
-e 's/@''GNULIB_FREE_POSIX''@/$(GNULIB_FREE_POSIX)/g' \
|
-e 's/@''GNULIB_FREE_POSIX''@/$(GNULIB_FREE_POSIX)/g' \
|
||||||
-e 's/@''GNULIB_MEMALIGN''@/$(GNULIB_MEMALIGN)/g' \
|
-e 's/@''GNULIB_MEMALIGN''@/$(GNULIB_MEMALIGN)/g' \
|
||||||
|
Reference in New Issue
Block a user