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);
9191#define PyMem_DEL (p ) PyMem_Free((p))
9292
9393
94+ #if !defined(Py_LIMITED_API ) || Py_LIMITED_API + 0 >= 0x030d0000
9495// Memory allocator which doesn't require the GIL to be held.
9596// Usually, it's just a thin wrapper to functions of the standard C library:
9697// malloc(), calloc(), realloc() and free(). The difference is that
@@ -99,6 +100,7 @@ PyAPI_FUNC(void *) PyMem_RawMalloc(size_t size);
99100PyAPI_FUNC (void * ) PyMem_RawCalloc (size_t nelem , size_t elsize );
100101PyAPI_FUNC (void * ) PyMem_RawRealloc (void * ptr , size_t new_size );
101102PyAPI_FUNC (void ) PyMem_RawFree (void * ptr );
103+ #endif
102104
103105#ifndef Py_LIMITED_API
104106# define Py_CPYTHON_PYMEM_H
You can’t perform that action at this time.
0 commit comments