From 638437ff4d55102d6de33e2ef337ef55957285a5 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Fri, 4 Oct 2002 12:43:02 +0000 Subject: 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. --- Include/cStringIO.h | 6 +++--- Include/complexobject.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Include/cStringIO.h b/Include/cStringIO.h index 224f8ff..50921d9 100644 --- a/Include/cStringIO.h +++ b/Include/cStringIO.h @@ -1,5 +1,5 @@ -#ifndef CSTRINGIO_INCLUDED -#define CSTRINGIO_INCLUDED +#ifndef Py_CSTRINGIO_H +#define Py_CSTRINGIO_H #ifdef __cplusplus extern "C" { #endif @@ -60,4 +60,4 @@ static struct PycStringIO_CAPI { #ifdef __cplusplus } #endif -#endif /* CSTRINGIO_INCLUDED */ +#endif /* !Py_CSTRINGIO_H */ diff --git a/Include/complexobject.h b/Include/complexobject.h index f5b755d..e59bf2c 100644 --- a/Include/complexobject.h +++ b/Include/complexobject.h @@ -1,7 +1,7 @@ /* Complex number structure */ -#ifndef COMPLEXOBJECT_H -#define COMPLEXOBJECT_H +#ifndef Py_COMPLEXOBJECT_H +#define Py_COMPLEXOBJECT_H #ifdef __cplusplus extern "C" { #endif @@ -55,4 +55,4 @@ PyAPI_FUNC(Py_complex) PyComplex_AsCComplex(PyObject *op); #ifdef __cplusplus } #endif -#endif /* !COMPLEXOBJECT_H */ +#endif /* !Py_COMPLEXOBJECT_H */ -- cgit v0.12