mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
GH-93207: Remove HAVE_STDARG_PROTOTYPES configure check for stdarg.h (#93215)
This commit is contained in:
parent
ddc4a782d3
commit
cb04a09d2d
19 changed files with 9 additions and 171 deletions
23
configure.ac
23
configure.ac
|
|
@ -1947,7 +1947,7 @@ AS_CASE([$ac_sys_system],
|
|||
dnl build with WASM debug info if either Py_DEBUG is set or the target is
|
||||
dnl node-debug or browser-debug.
|
||||
AS_VAR_IF([Py_DEBUG], [yes], [wasm_debug=yes], [wasm_debug=no])
|
||||
|
||||
|
||||
dnl Start with 20 MB and allow to grow
|
||||
AS_VAR_APPEND([LDFLAGS_NODIST], [" -sALLOW_MEMORY_GROWTH -sTOTAL_MEMORY=20971520"])
|
||||
|
||||
|
|
@ -5022,27 +5022,6 @@ AS_VAR_IF([ac_cv_function_prototypes], [yes], [
|
|||
[Define if your compiler supports function prototype])
|
||||
])
|
||||
|
||||
works=no
|
||||
AC_CACHE_CHECK([for variable length prototypes and stdarg.h], [ac_cv_stdarg_prototypes], [
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
||||
#include <stdarg.h>
|
||||
int foo(int x, ...) {
|
||||
va_list va;
|
||||
va_start(va, x);
|
||||
va_arg(va, int);
|
||||
va_arg(va, char *);
|
||||
va_arg(va, double);
|
||||
return 0;
|
||||
}
|
||||
]], [[return foo(10, "", 3.14);]])],
|
||||
[ac_cv_stdarg_prototypes=yes], [ac_cv_stdarg_prototypes=no])
|
||||
])
|
||||
AS_VAR_IF([ac_cv_stdarg_prototypes], [yes], [
|
||||
AC_DEFINE(HAVE_STDARG_PROTOTYPES, 1,
|
||||
[Define if your compiler supports variable length function prototypes
|
||||
(e.g. void fprintf(FILE *, char *, ...);) *and* <stdarg.h>])
|
||||
])
|
||||
|
||||
|
||||
# check for socketpair
|
||||
PY_CHECK_FUNC([socketpair], [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue