]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Backport last checkin:
authorNeal Norwitz <nnorwitz@gmail.com>
Fri, 4 Oct 2002 12:50:12 +0000 (12:50 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Fri, 4 Oct 2002 12:50:12 +0000 (12:50 +0000)
SF # 607253, header file problems, reported 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
Include/complexobject.h

index fa3fcd70a6b88d34acb19e6a518891d407ccaacd..5bf1c469a8c8c3b17bcfb3590dad4cacfda55c85 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef CSTRINGIO_INCLUDED
-#define CSTRINGIO_INCLUDED
+#ifndef Py_CSTRINGIO_H
+#define Py_CSTRINGIO_H
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -134,4 +134,4 @@ xxxPyCObject_Import(char *module_name, char *name)
 #ifdef __cplusplus
 }
 #endif
-#endif /* CSTRINGIO_INCLUDED */
+#endif /* !Py_CSTRINGIO_H */
index b82eb90dcf5e600b5a89d8d2227720e96109d976..e081c54b648c4297149f5bbdef0e967ea90d50bd 100644 (file)
@@ -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 @@ extern DL_IMPORT(Py_complex) PyComplex_AsCComplex(PyObject *op);
 #ifdef __cplusplus
 }
 #endif
-#endif /* !COMPLEXOBJECT_H */
+#endif /* !Py_COMPLEXOBJECT_H */