From 6d765eee15483bd1f7487e3937093f7905601e7f Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Mon, 23 Jun 2025 12:02:50 +0900 Subject: [PATCH] include: make system headers self contained Let's not include any non-system headers in system headers. --- src/basic/include/malloc.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/basic/include/malloc.h b/src/basic/include/malloc.h index 96051805438..d0080b6cbc0 100644 --- a/src/basic/include/malloc.h +++ b/src/basic/include/malloc.h @@ -3,8 +3,6 @@ #include_next -#include "macro.h" - #if !HAVE_MALLINFO2 struct mallinfo2 { size_t arena; /* non-mmapped space allocated from system */ @@ -20,9 +18,10 @@ struct mallinfo2 { }; static inline struct mallinfo2 mallinfo2(void) { -DISABLE_WARNING_DEPRECATED_DECLARATIONS + _Pragma("GCC diagnostic push"); + _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\""); struct mallinfo m = mallinfo(); -REENABLE_WARNING + _Pragma("GCC diagnostic pop"); return (struct mallinfo2) { .arena = m.arena, -- 2.47.3