com php-src: Remove HAVE_SYS_VARARGS_H: configure.a c ext/gd/libgd/gd.h main/php.h

From: Date: Sun, 16 Sep 2018 18:50:20 +0000
Subject: com php-src: Remove HAVE_SYS_VARARGS_H: configure.a c ext/gd/libgd/gd.h main/php.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-103121@lists.php.net to get a copy of this message
Commit: dcc529aff4479e4287207fa8964ef2f05b2f02c4 Author: Peter Kokot <peterkokot@gmail.com> Sun, 16 Sep 2018 03:31:24 +0200 Parents: f72b6c5e1979f0b203723421b58e8b2528fe77fc Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=dcc529aff4479e4287207fa8964ef2f05b2f02c4 Log: 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 Bugs: https://bugs.php.net/4 Changed paths: M configure.ac M ext/gd/libgd/gd.h M main/php.h Diff: diff --git a/configure.ac b/configure.ac index cb171fc..ef5d8ac 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 c8c6d29..89a6404 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 <stdarg.h> -#else -# if HAVE_STDARG_H -# include <stdarg.h> -# else -# if HAVE_SYS_VARARGS_H -# include <sys/varargs.h> -# endif -# endif -#endif +#include <stdarg.h> /* 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 4134f7b..f23e18e 100644 --- a/main/php.h +++ b/main/php.h @@ -224,13 +224,8 @@ typedef unsigned int socklen_t; #if HAVE_UNISTD_H #include <unistd.h> #endif -#if HAVE_STDARG_H + #include <stdarg.h> -#else -# if HAVE_SYS_VARARGS_H -# include <sys/varargs.h> -# endif -#endif #include "php_stdint.h"

« previous php.cvs (#103121) next »