We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa30035 commit 2cc3b9aCopy full SHA for 2cc3b9a
Include/pymem.h
@@ -91,6 +91,7 @@ PyAPI_FUNC(void) PyMem_Free(void *ptr);
91
#define PyMem_DEL(p) PyMem_Free((p))
92
93
94
+#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030d0000
95
// Memory allocator which doesn't require the GIL to be held.
96
// Usually, it's just a thin wrapper to functions of the standard C library:
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);
101
PyAPI_FUNC(void *) PyMem_RawRealloc(void *ptr, size_t new_size);
102
PyAPI_FUNC(void) PyMem_RawFree(void *ptr);
103
+#endif
104
105
#ifndef Py_LIMITED_API
106
# define Py_CPYTHON_PYMEM_H
0 commit comments