]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-41078: Fix bltinmodule.c with Py_TRACE_REFS (GH-21058)
authorVictor Stinner <vstinner@python.org>
Mon, 22 Jun 2020 16:02:49 +0000 (18:02 +0200)
committerGitHub <noreply@github.com>
Mon, 22 Jun 2020 16:02:49 +0000 (18:02 +0200)
Add pycore_object.h include to fix bltinmodule.c when Py_TRACE_REFS
macro is defined.

Python/bltinmodule.c

index a582ccda2c384335a0ee3c556d6ee8599e65fd63..89b7fce8f4a9cc3ce8c52eefe8ad1ee9728f33b0 100644 (file)
@@ -4,6 +4,7 @@
 #include <ctype.h>
 #include "ast.h"
 #undef Yield   /* undefine macro conflicting with <winbase.h> */
+#include "pycore_object.h"        // _Py_AddToAllObjects()
 #include "pycore_pyerrors.h"      // _PyErr_NoMemory()
 #include "pycore_pystate.h"       // _PyThreadState_GET()
 #include "pycore_tuple.h"         // _PyTuple_FromArray()