From b41a5023f981a4e7e67dbefdf3cfd8af27e22051 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Tue, 20 Feb 2024 18:02:54 +0100 Subject: [PATCH] Remove malloc.h (#13436) 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 f807bf21559..5c9bd3276b2 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 07b11bd7e22..dd262e3e98d 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