Skip to content

Commit feeb28a

Browse files
committed
Remove HAVE_STRING_H, HAVE_STDARG_H, and HAVE_STDLIB_H
These symbols are defined by the build system to check the presence of the standard C89 headers. Since C89 is really widely adopted across systems already, these checks are obsolete today and not needed. http://port70.net/~nsz/c/c89/c89-draft.html#4.1.2 Some of these checks are also removed since PHP-7.4. Closes GH-13
1 parent 3dbdb7e commit feeb28a

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

pecl-compat/compat.h

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,7 @@
4646
# include "config.h"
4747
#endif
4848

49-
#if HAVE_STRING_H
50-
# include <string.h>
51-
#endif
49+
#include <string.h>
5250

5351
#ifdef HAVE_SYS_TYPES_H
5452
# include <sys/types.h>
@@ -67,13 +65,8 @@
6765
# include <sys/resource.h>
6866
#endif
6967

70-
#ifdef HAVE_STDARG_H
7168
#include <stdarg.h>
72-
#endif
73-
74-
#ifdef HAVE_STDLIB_H
75-
# include <stdlib.h>
76-
#endif
69+
#include <stdlib.h>
7770

7871
#ifdef HAVE_UNISTD_H
7972
# include <unistd.h>

0 commit comments

Comments
 (0)