Commit ad2d1f7d authored by Thomas A Caswell's avatar Thomas A Caswell Committed by da-woods

MNT: always require va_start to have two arguments (#4820)

* MNT: always require va_start to have two arguments

https://github.com/python/cpython/pull/93215 chance CPython to always use the
2-input version of va_start and dropped defining HAVE_STDARG_PROTOTYPES.  This
resulted in the 1-argument version being used when compiling cython source
which fails

This makes cython also always use the 2-argument version.

* Remove blank line

* FIX: version gate 2-argument va_start checking to py311
parent c0dfb9c2
...@@ -450,7 +450,7 @@ static void __pyx_fatalerror(const char *fmt, ...) Py_NO_RETURN { ...@@ -450,7 +450,7 @@ static void __pyx_fatalerror(const char *fmt, ...) Py_NO_RETURN {
va_list vargs; va_list vargs;
char msg[200]; char msg[200];
#ifdef HAVE_STDARG_PROTOTYPES #if PY_VERSION_HEX >= 0x030A0000 || defined(HAVE_STDARG_PROTOTYPES)
va_start(vargs, fmt); va_start(vargs, fmt);
#else #else
va_start(vargs); va_start(vargs);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment