File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ PyAPI_FUNC(void) PyMem_Free(void *ptr);
91
91
#define PyMem_DEL (p ) PyMem_Free((p))
92
92
93
93
94
+ #if !defined(Py_LIMITED_API ) || Py_LIMITED_API + 0 >= 0x030d0000
94
95
// Memory allocator which doesn't require the GIL to be held.
95
96
// Usually, it's just a thin wrapper to functions of the standard C library:
96
97
// malloc(), calloc(), realloc() and free(). The difference is that
@@ -99,6 +100,7 @@ PyAPI_FUNC(void *) PyMem_RawMalloc(size_t size);
99
100
PyAPI_FUNC (void * ) PyMem_RawCalloc (size_t nelem , size_t elsize );
100
101
PyAPI_FUNC (void * ) PyMem_RawRealloc (void * ptr , size_t new_size );
101
102
PyAPI_FUNC (void ) PyMem_RawFree (void * ptr );
103
+ #endif
102
104
103
105
#ifndef Py_LIMITED_API
104
106
# define Py_CPYTHON_PYMEM_H
You can’t perform that action at this time.
0 commit comments