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.
This commit is contained in:
Rolf Eike Beer
2024-11-15 09:14:59 +01:00
committed by Brad King
parent 84c8003ece
commit 1dd5cf1e08

View File

@@ -1,4 +1,4 @@
#define Py_LIMITED_API 3
#include <Python.h>
static PyObject* spam_system(PyObject* self, PyObject* args)