blob: 7faec9f9b8c377d9071c955e8d9ed2f73d937242 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
diff --git a/Modules/_ctypes/malloc_closure.c b/Modules/_ctypes/malloc_closure.c
index 788bae6a9..3938f79db 100644
--- a/Modules/_ctypes/malloc_closure.c
+++ b/Modules/_ctypes/malloc_closure.c
@@ -11,6 +11,9 @@
#endif
#include "ctypes.h"
+#undef Py_ffi_closure_alloc
+#undef Py_ffi_closure_free
+
/* BLOCKSIZE can be adjusted. Larger blocksize will take a larger memory
overhead, but allocate less blocks from the system. It may be that some
systems have a limit of how many mmap'd blocks can be open.
|