include: make system headers self contained

Let's not include any non-system headers in system headers.
This commit is contained in:
Yu Watanabe
2025-06-24 23:22:32 +09:00
parent 9422ce83c2
commit 6d765eee15
+3 -4
View File
@@ -3,8 +3,6 @@
#include_next <malloc.h>
#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,