Skip to content

Commit dcc529a

Browse files
committed
Remove HAVE_SYS_VARARGS_H
Outdated systems used to provide the `<varargs.h>` and in case of PHP `<sys/varargs.h>`. [1] Current systems have `<stdarg.h>` which is also a C89 standard header and systems have it always present. [2] [1] https://en.wikipedia.org/wiki/Stdarg.h#varargs.h [2] https://port70.net/~nsz/c/c89/c89-draft.html#4.1.2
1 parent f72b6c5 commit dcc529a

File tree

3 files changed

+2
-18
lines changed

3 files changed

+2
-18
lines changed

configure.ac

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,6 @@ sys/statfs.h \
466466
sys/statvfs.h \
467467
sys/vfs.h \
468468
sys/sysexits.h \
469-
sys/varargs.h \
470469
sys/wait.h \
471470
sys/loadavg.h \
472471
termios.h \

ext/gd/libgd/gd.h

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,7 @@ extern "C" {
4747
#include "gd_io.h"
4848

4949
/* va_list needed in gdErrorMethod */
50-
#ifdef PHP_WIN32
51-
# include <stdarg.h>
52-
#else
53-
# if HAVE_STDARG_H
54-
# include <stdarg.h>
55-
# else
56-
# if HAVE_SYS_VARARGS_H
57-
# include <sys/varargs.h>
58-
# endif
59-
# endif
60-
#endif
50+
#include <stdarg.h>
6151

6252
/* The maximum number of palette entries in palette-based images.
6353
In the wonderful new world of gd 2.0, you can of course have

main/php.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -224,13 +224,8 @@ typedef unsigned int socklen_t;
224224
#if HAVE_UNISTD_H
225225
#include <unistd.h>
226226
#endif
227-
#if HAVE_STDARG_H
227+
228228
#include <stdarg.h>
229-
#else
230-
# if HAVE_SYS_VARARGS_H
231-
# include <sys/varargs.h>
232-
# endif
233-
#endif
234229

235230
#include "php_stdint.h"
236231

0 commit comments

Comments
 (0)