From 358fb5ee69bf863c76938f4f30c934848754ddc9 Mon Sep 17 00:00:00 2001 From: Erwin Janssen Date: Fri, 9 Dec 2016 01:24:14 +0100 Subject: [PATCH] Remove defintion of HAVE_STDARG_H and _hdr_stdarg The define _hdr_stdarg was only used in ast_common.h to include but this include was not needed, compilation succeeds without it. The define HAVE_STDARG_H was only used to set _hdr_starg in ast_common.h. Both defines and the include can therefore safely be removed. --- ast_common.h.in | 7 ------- config.iffe | 1 - configure.ac | 2 +- windows/include/config.h | 3 --- 4 files changed, 1 insertion(+), 12 deletions(-) diff --git a/ast_common.h.in b/ast_common.h.in index 5412671fc..d07350051 100644 --- a/ast_common.h.in +++ b/ast_common.h.in @@ -15,10 +15,6 @@ # define _sys_stat 1 #endif -#ifdef HAVE_STDARG_H -# define _hdr_stdarg 1 -#endif - #ifdef HAVE_VARARGS_H # define _hdr_varargs 1 #endif @@ -56,9 +52,6 @@ #endif /*_astimport*/ #ifndef _AST_STD_H -# if defined(_hdr_stdarg) -# include -# endif # if defined(_hdr_varargs) # include # endif diff --git a/config.iffe b/config.iffe index 6232cdcea..37aa13abf 100644 --- a/config.iffe +++ b/config.iffe @@ -34,7 +34,6 @@ hdr malloc hdr ndir hdr netdb hdr search -hdr stdarg hdr stdbool hdr stdint hdr strings diff --git a/configure.ac b/configure.ac index bcfdd0e02..3a0ec0109 100644 --- a/configure.ac +++ b/configure.ac @@ -425,7 +425,7 @@ dnl ----------------------------------- dnl Checks for header files # AC_HEADER_STDC -AC_CHECK_HEADERS(stdarg.h stddef.h stddef.h malloc.h \ +AC_CHECK_HEADERS(stddef.h stddef.h malloc.h \ fcntl.h search.h pthread.h values.h float.h limits.h termios.h \ errno.h time.h unistd.h strings.h setjmp.h \ sys/time.h sys/times.h sys/types.h sys/select.h \ diff --git a/windows/include/config.h b/windows/include/config.h index 16fec8503..5a3f1d5d2 100644 --- a/windows/include/config.h +++ b/windows/include/config.h @@ -258,9 +258,6 @@ /* Define to 1 if you have the `srand48' function. */ /* #undef HAVE_SRAND48 */ -/* Define to 1 if you have the header file. */ -#define HAVE_STDARG_H 1 - /* Define to 1 if stdbool.h conforms to C99. */ //#define HAVE_STDBOOL_H 1 -- 2.40.0