Skip to content

Commit b41a502

Browse files
authored
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.
1 parent 056c43f commit b41a502

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

configure.ac

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,6 @@ grp.h \
398398
ieeefp.h \
399399
langinfo.h \
400400
linux/sock_diag.h \
401-
malloc.h \
402401
os/signpost.h \
403402
poll.h \
404403
pty.h \

ext/gd/libgd/gdcache.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@
4141
/*********************************************************/
4242

4343
#include <stdlib.h>
44-
#if (!defined(__OpenBSD__)) && defined(HAVE_MALLOC_H)
45-
#include <malloc.h>
46-
#endif
4744
#ifndef NULL
4845
#define NULL (void *)0
4946
#endif

0 commit comments

Comments
 (0)