From dcc529aff4479e4287207fa8964ef2f05b2f02c4 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Sun, 16 Sep 2018 03:31:24 +0200 Subject: [PATCH] Remove HAVE_SYS_VARARGS_H Outdated systems used to provide the `` and in case of PHP ``. [1] Current systems have `` 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 --- configure.ac | 1 - ext/gd/libgd/gd.h | 12 +----------- main/php.h | 7 +------ 3 files changed, 2 insertions(+), 18 deletions(-) diff --git a/configure.ac b/configure.ac index cb171fc19f..ef5d8ac73f 100644 --- a/configure.ac +++ b/configure.ac @@ -466,7 +466,6 @@ sys/statfs.h \ sys/statvfs.h \ sys/vfs.h \ sys/sysexits.h \ -sys/varargs.h \ sys/wait.h \ sys/loadavg.h \ termios.h \ diff --git a/ext/gd/libgd/gd.h b/ext/gd/libgd/gd.h index c8c6d29c18..89a64041a0 100644 --- a/ext/gd/libgd/gd.h +++ b/ext/gd/libgd/gd.h @@ -47,17 +47,7 @@ extern "C" { #include "gd_io.h" /* va_list needed in gdErrorMethod */ -#ifdef PHP_WIN32 -# include -#else -# if HAVE_STDARG_H -# include -# else -# if HAVE_SYS_VARARGS_H -# include -# endif -# endif -#endif +#include /* The maximum number of palette entries in palette-based images. In the wonderful new world of gd 2.0, you can of course have diff --git a/main/php.h b/main/php.h index 4134f7b3d4..f23e18eebf 100644 --- a/main/php.h +++ b/main/php.h @@ -224,13 +224,8 @@ typedef unsigned int socklen_t; #if HAVE_UNISTD_H #include #endif -#if HAVE_STDARG_H + #include -#else -# if HAVE_SYS_VARARGS_H -# include -# endif -#endif #include "php_stdint.h" -- 2.40.0