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 05e7c90 commit 72b1637Copy full SHA for 72b1637
1 file changed
Include/pyabi.h
@@ -31,6 +31,18 @@
31
# define Py_BUILD_CORE
32
#endif
33
34
+/* Check valid values for target ABI macros.
35
+ */
36
+#if defined(Py_LIMITED_API) && Py_LIMITED_API+0 < 3
37
+ // Empty Py_LIMITED_API used to work; redefine to
38
+ // Python 3.2 to be explicit.
39
+# undef Py_LIMITED_API
40
+# define Py_LIMITED_API 0x03020000
41
+#endif
42
+#if defined(Py_TARGET_ABI3T) && Py_TARGET_ABI3T+0 < 0x030f0000
43
+# error "Py_TARGET_ABI3T must be 0x030f0000 (3.15) or above"
44
45
+
46
/* Stable ABI for free-threaded builds (abi3t, introduced in PEP 803)
47
* is enabled by one of:
48
* - Py_TARGET_ABI3T, or
0 commit comments