From 1dd5cf1e085a4835bf9d59a23bbf4273d939b510 Mon Sep 17 00:00:00 2001 From: Rolf Eike Beer Date: Fri, 15 Nov 2024 09:14:59 +0100 Subject: [PATCH] Tests/FindPython: only use limited API Newer Python versions (namely 3.13) do not support old compilers before gcc 4.8 for atomics, which leads to compile errors in the test case. Since the test actually does not use any of that API, restrict it to the limited Python API which offers even more stability across versions. --- Tests/FindPython/spam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/FindPython/spam.c b/Tests/FindPython/spam.c index 1c65d54864..6dad10a1ea 100644 --- a/Tests/FindPython/spam.c +++ b/Tests/FindPython/spam.c @@ -1,4 +1,4 @@ - +#define Py_LIMITED_API 3 #include static PyObject* spam_system(PyObject* self, PyObject* args)