summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas A Caswell <tcaswell@gmail.com>2022-06-07 13:32:19 -0400
committerda-woods <dw-git@d-woods.co.uk>2022-06-07 18:35:10 +0100
commitad2d1f7dd72b0dbdb9d9441e0b30936ebad1a2c4 (patch)
treed8f05114a67772675a7c2cd2e77d379f10d8c72e
parentc0dfb9c2f592b7e0ece90ec83fbadcf6e6da3d47 (diff)
downloadcython-ad2d1f7dd72b0dbdb9d9441e0b30936ebad1a2c4.tar.gz
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
-rw-r--r--Cython/Utility/MemoryView_C.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Utility/MemoryView_C.c b/Cython/Utility/MemoryView_C.c
index 0a5d8ee2c..8146c458d 100644
--- a/Cython/Utility/MemoryView_C.c
+++ b/Cython/Utility/MemoryView_C.c
@@ -450,7 +450,7 @@ static void __pyx_fatalerror(const char *fmt, ...) Py_NO_RETURN {
va_list vargs;
char msg[200];
-#ifdef HAVE_STDARG_PROTOTYPES
+#if PY_VERSION_HEX >= 0x030A0000 || defined(HAVE_STDARG_PROTOTYPES)
va_start(vargs, fmt);
#else
va_start(vargs);