1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

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
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