summaryrefslogtreecommitdiffstats
path: root/Include/iterobject.h
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-03-30 08:57:12 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-03-30 08:57:12 (GMT)
commit522cf1f6fb2dab78702af1f1f06b0855fab75149 (patch)
tree335bb4e2454d3f44951890ee32ce7ebbcf3ff2ca /Include/iterobject.h
parentdf4d1377ed103f157a5ba36601ddd03624d2223d (diff)
downloadcpython-522cf1f6fb2dab78702af1f1f06b0855fab75149.zip
cpython-522cf1f6fb2dab78702af1f1f06b0855fab75149.tar.gz
cpython-522cf1f6fb2dab78702af1f1f06b0855fab75149.tar.bz2
Patch #536908: Add missing #include guards/extern "C".
Diffstat (limited to 'Include/iterobject.h')
-rw-r--r--Include/iterobject.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/Include/iterobject.h b/Include/iterobject.h
index bc18991..8abe678 100644
--- a/Include/iterobject.h
+++ b/Include/iterobject.h
@@ -1,4 +1,9 @@
+#ifndef Py_ITEROBJECT_H
+#define Py_ITEROBJECT_H
/* Iterators (the basic kind, over a sequence) */
+#ifdef __cplusplus
+extern "C" {
+#endif
extern DL_IMPORT(PyTypeObject) PySeqIter_Type;
@@ -11,3 +16,8 @@ extern DL_IMPORT(PyTypeObject) PyCallIter_Type;
#define PyCallIter_Check(op) ((op)->ob_type == &PyCallIter_Type)
extern DL_IMPORT(PyObject *) PyCallIter_New(PyObject *, PyObject *);
+#ifdef __cplusplus
+}
+#endif
+#endif /* !Py_ITEROBJECT_H */
+