8000 Check Py_LIMITED_API version · python/cpython@f1da73b · GitHub
[go: up one dir, main page]

Skip to content

Commit f1da73b

Browse files
committed
Check Py_LIMITED_API version
1 parent ee520a1 commit f1da73b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Include/sysmodule.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,12 @@ Py_DEPRECATED(3.13) PyAPI_FUNC(void) PySys_ResetWarnOptions(void);
2121

2222
PyAPI_FUNC(PyObject *) PySys_GetXOptions(void);
2323

24+
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030d0000
2425
PyAPI_FUNC(int) PySys_Audit(
2526
const char *event,
2627
const char *argFormat,
2728
...);
29+
#endif
2830

2931
#ifndef Py_LIMITED_API
3032
# define Py_CPYTHON_SYSMODULE_H

0 commit comments

Comments
 (0)
0