From c4aee0b18a93dd183aeb4afe911eadc22de2f276 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Tue, 20 Feb 2024 06:24:08 +0100 Subject: [PATCH] Remove malloc.h This removes the deprecated malloc.h header Autoconf check on *nix systems and its HAVE_MALLOC_H symbol. It can be replaced mostly with the stdlib.h. The libgd usptream also doesn't include it anymore. On Windows, it is still used for some memory allocation functions, but can be replaced with stdlib.h in the future. --- configure.ac | 1 - ext/gd/libgd/gdcache.h | 3 --- 2 files changed, 4 deletions(-) diff --git a/configure.ac b/configure.ac index f807bf215594a..5c9bd3276b211 100644 --- a/configure.ac +++ b/configure.ac @@ -398,7 +398,6 @@ grp.h \ ieeefp.h \ langinfo.h \ linux/sock_diag.h \ -malloc.h \ os/signpost.h \ poll.h \ pty.h \ diff --git a/ext/gd/libgd/gdcache.h b/ext/gd/libgd/gdcache.h index 07b11bd7e2224..dd262e3e98dab 100644 --- a/ext/gd/libgd/gdcache.h +++ b/ext/gd/libgd/gdcache.h @@ -41,9 +41,6 @@ /*********************************************************/ #include -#if (!defined(__OpenBSD__)) && defined(HAVE_MALLOC_H) - #include -#endif #ifndef NULL #define NULL (void *)0 #endif