Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0197ff9

Browse files
committed
Issue #14387: Do not include accu.h from Python.h.
1 parent ab79c71 commit 0197ff9

5 files changed

Lines changed: 5 additions & 1 deletion

File tree

Include/Python.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@
100100
#include "warnings.h"
101101
#include "weakrefobject.h"
102102
#include "structseq.h"
103-
#include "accu.h"
104103

105104
#include "codecs.h"
106105
#include "pyerrors.h"

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ Extension Modules
9393
Build
9494
-----
9595

96+
- Issue #14387: Do not include accu.h from Python.h.
97+
9698
- Issue #14359: Only use O_CLOEXEC in _posixmodule.c if it is defined.
9799
Based on patch from Hervé Coatanhay.
98100

Objects/accu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/* Accumulator struct implementation */
22

33
#include "Python.h"
4+
#include "accu.h"
45

56
static PyObject *
67
join_list_unicode(PyObject *lst)

Objects/listobject.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/* List object implementation */
22

33
#include "Python.h"
4+
#include "accu.h"
45

56
#ifdef STDC_HEADERS
67
#include <stddef.h>

Objects/tupleobject.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/* Tuple object implementation */
33

44
#include "Python.h"
5+
#include "accu.h"
56

67
/* Speed optimization to avoid frequent malloc/free of small tuples */
78
#ifndef PyTuple_MAXSAVESIZE

0 commit comments

Comments
 (0)