Patch #536908: Add missing #include guards/extern "C". · wrongnull/cpython@522cf1f · GitHub
Skip to content

Commit 522cf1f

Browse files
committed
Patch #536908: Add missing #include guards/extern "C".
1 parent df4d137 commit 522cf1f

3 files changed

Lines changed: 26 additions & 0 deletions

File tree

Include/cStringIO.h

Lines changed: 6 additions & 0 deletions

Include/descrobject.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
/* Descriptors */
2+
#ifndef Py_DESCROBJECT_H
3+
#define Py_DESCROBJECT_H
4+
#ifdef __cplusplus
5+
extern "C" {
6+
#endif
27

38
typedef PyObject *(*getter)(PyObject *, void *);
49
typedef int (*setter)(PyObject *, PyObject *, void *);
@@ -78,3 +83,8 @@ extern DL_IMPORT(PyObject *) PyWrapper_New(PyObject *, PyObject *);
7883

7984

8085
extern DL_IMPORT(PyTypeObject) PyProperty_Type;
86+
#ifdef __cplusplus
87+
}
88+
#endif
89+
#endif /* !Py_DESCROBJECT_H */
90+

Include/iterobject.h

Lines changed: 10 additions & 0 deletions

0 commit comments

Comments
 (0)