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 b857ae7 commit 68aad45Copy full SHA for 68aad45
1 file changed
pythoncapi_compat.h
@@ -1211,7 +1211,7 @@ static inline int PyTime_PerfCounter(PyTime_t *result)
1211
1212
// gh-111545 added Py_GetConstant() and Py_GetConstantBorrowed()
1213
// to Python 3.13.0a6
1214
-#if PY_VERSION_HEX < 0x030D00A6
+#if PY_VERSION_HEX < 0x030D00A6 && !defined(Py_CONSTANT_NONE)
1215
1216
#define Py_CONSTANT_NONE 0
1217
#define Py_CONSTANT_FALSE 1
0 commit comments