]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Backport Martin's checkin 2.16:
authorThomas Wouters <thomas@python.org>
Wed, 27 Jun 2001 13:52:56 +0000 (13:52 +0000)
committerThomas Wouters <thomas@python.org>
Wed, 27 Jun 2001 13:52:56 +0000 (13:52 +0000)
Wrap with extern "C". Fixes bug #428419.
Also protect against multiple inclusion.

Include/rangeobject.h

index 145f774af85e295698f1f935d01e9f3b7c16c66c..ff6dbc2871798188e67aeb8c1dc41a5841e61f25 100644 (file)
@@ -1,6 +1,12 @@
 
 /* Range object interface */
 
+#ifndef Py_RANGEOBJECT_H
+#define Py_RANGEOBJECT_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*
 A range object represents an integer range.  This is an immutable object;
 a range cannot change its value after creation.
@@ -14,3 +20,8 @@ extern DL_IMPORT(PyTypeObject) PyRange_Type;
 #define PyRange_Check(op) ((op)->ob_type == &PyRange_Type)
 
 extern DL_IMPORT(PyObject *) PyRange_New(long, long, long, int);
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* !Py_RANGEOBJECT_H */