From c45dbe93b7094fe014442c198727ee38b25541c4 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Mon, 22 Jun 2020 17:39:32 +0200 Subject: bpo-41078: Add pycore_list.h internal header file (GH-21057) * Move _PyList_ITEMS() to pycore_list.h. * The C extension "_heapq" is now built with Py_BUILD_CORE_MODULE macro defined to access the internal C API. --- Modules/_heapqmodule.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Modules/_heapqmodule.c') diff --git a/Modules/_heapqmodule.c b/Modules/_heapqmodule.c index 193478d79b..20468c28f2 100644 --- a/Modules/_heapqmodule.c +++ b/Modules/_heapqmodule.c @@ -7,9 +7,11 @@ annotated by François Pinard, and converted to C by Raymond Hettinger. */ #include "Python.h" +#include "pycore_list.h" // _PyList_ITEMS() #include "clinic/_heapqmodule.c.h" + /*[clinic input] module _heapq [clinic start generated code]*/ -- cgit v1.2.1