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.
This commit is contained in:
Peter Kokot 2024-02-20 18:02:54 +01:00 committed by GitHub
parent 056c43f848
commit b41a5023f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 0 additions and 4 deletions

View file

@ -398,7 +398,6 @@ grp.h \
ieeefp.h \
langinfo.h \
linux/sock_diag.h \
malloc.h \
os/signpost.h \
poll.h \
pty.h \

View file

@ -41,9 +41,6 @@
/*********************************************************/
#include <stdlib.h>
#if (!defined(__OpenBSD__)) && defined(HAVE_MALLOC_H)
#include <malloc.h>
#endif
#ifndef NULL
#define NULL (void *)0
#endif