diff options
author | Thomas Wouters <thomas@python.org> | 2001-06-27 13:52:56 (GMT) |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2001-06-27 13:52:56 (GMT) |
commit | 5829456191a5725a75020bcc7d3e242727b8edf4 (patch) | |
tree | c5f7b4ff0c79b3847c31f9eb38b1f5d9db2e9fe8 /Include | |
parent | 2a0f86d0366ed22f1543137c657569bfdf07d679 (diff) | |
download | cpython-5829456191a5725a75020bcc7d3e242727b8edf4.zip cpython-5829456191a5725a75020bcc7d3e242727b8edf4.tar.gz cpython-5829456191a5725a75020bcc7d3e242727b8edf4.tar.bz2 |
Backport Martin's checkin 2.16:
Wrap with extern "C". Fixes bug #428419.
Also protect against multiple inclusion.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/rangeobject.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Include/rangeobject.h b/Include/rangeobject.h index 145f774..ff6dbc2 100644 --- a/Include/rangeobject.h +++ b/Include/rangeobject.h @@ -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 */ |