We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0dfa681 commit c7d3657Copy full SHA for c7d3657
tests/test_pythoncapi_compat_cext.c
@@ -1,6 +1,17 @@
1
// Always enable assertions
2
#undef NDEBUG
3
4
+// In Python 3.11a2-3.11a6, _PyFloat_Pack8() is part of the internal C API:
5
+// pythoncapi_compat.h doesn't support these early alpha versions. Workaround
6
+// the issue to be able to test pythoncapi_compat.h on these unsupported Python
7
+// versions anyway.
8
+#include "Python.h"
9
+#if (0x030B00A2 <= PY_VERSION_HEX && PY_VERSION_HEX <= 0x030B00A6) && !defined(PYPY_VERSION)
10
+# define Py_BUILD_CORE 1
11
+# include "internal/pycore_floatobject.h"
12
+# undef Py_BUILD_CORE
13
+#endif
14
+
15
#include "pythoncapi_compat.h"
16
17
#ifdef Py_LIMITED_API
0 commit comments