Skip to content

Commit 638437f

Browse files
committed
SF # 607253, header file problems by Ralf W. Grosse-Kunstleve
Don't pollute the namespace when protecting against multiple header inclusion. Prefix with Py_ and use standard naming convention Py_FILENAME_H.
1 parent a40ea75 commit 638437f

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

Include/cStringIO.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef CSTRINGIO_INCLUDED
2-
#define CSTRINGIO_INCLUDED
1+
#ifndef Py_CSTRINGIO_H
2+
#define Py_CSTRINGIO_H
33
#ifdef __cplusplus
44
extern "C" {
55
#endif
@@ -60,4 +60,4 @@ static struct PycStringIO_CAPI {
6060
#ifdef __cplusplus
6161
}
6262
#endif
63-
#endif /* CSTRINGIO_INCLUDED */
63+
#endif /* !Py_CSTRINGIO_H */

Include/complexobject.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* Complex number structure */
22

3-
#ifndef COMPLEXOBJECT_H
4-
#define COMPLEXOBJECT_H
3+
#ifndef Py_COMPLEXOBJECT_H
4+
#define Py_COMPLEXOBJECT_H
55
#ifdef __cplusplus
66
extern "C" {
77
#endif
@@ -55,4 +55,4 @@ PyAPI_FUNC(Py_complex) PyComplex_AsCComplex(PyObject *op);
5555
#ifdef __cplusplus
5656
}
5757
#endif
58-
#endif /* !COMPLEXOBJECT_H */
58+
#endif /* !Py_COMPLEXOBJECT_H */

0 commit comments

Comments
 (0)