mirror of
https://github.com/python/cpython.git
synced 2025-08-02 08:02:56 +00:00
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.
This commit is contained in:
parent
a40ea75625
commit
638437ff4d
2 changed files with 6 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
||||||
#ifndef CSTRINGIO_INCLUDED
|
#ifndef Py_CSTRINGIO_H
|
||||||
#define CSTRINGIO_INCLUDED
|
#define Py_CSTRINGIO_H
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
@ -60,4 +60,4 @@ static struct PycStringIO_CAPI {
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif /* CSTRINGIO_INCLUDED */
|
#endif /* !Py_CSTRINGIO_H */
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/* Complex number structure */
|
/* Complex number structure */
|
||||||
|
|
||||||
#ifndef COMPLEXOBJECT_H
|
#ifndef Py_COMPLEXOBJECT_H
|
||||||
#define COMPLEXOBJECT_H
|
#define Py_COMPLEXOBJECT_H
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
@ -55,4 +55,4 @@ PyAPI_FUNC(Py_complex) PyComplex_AsCComplex(PyObject *op);
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif /* !COMPLEXOBJECT_H */
|
#endif /* !Py_COMPLEXOBJECT_H */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue