Skip to content

Commit 0197ff9

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

File tree

5 files changed

+5
-1
lines changed

5 files changed

+5
-1
lines changed

Diff for: Include/Python.h

-1
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"

Diff for: Misc/NEWS

+2
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

Diff for: Objects/accu.c

+1
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)

Diff for: Objects/listobject.c

+1
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>

Diff for: Objects/tupleobject.c

+1
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)