diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2001-06-05 05:58:44 +0000 |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2001-06-05 05:58:44 +0000 |
commit | 7ea4ae9a2d1b06df9a37bac4440bff5c2c2a0940 (patch) | |
tree | 15eb16b679edd2512d1ff6c171b4a9e26101a1c8 /Include/rangeobject.h | |
parent | ba70dbd0095480ae5dbf292a1a53bafde0def39d (diff) | |
download | cpython-7ea4ae9a2d1b06df9a37bac4440bff5c2c2a0940.tar.gz |
Wrap with extern "C". Fixes bug #428419.
Also protect against multiple inclusion.
Diffstat (limited to 'Include/rangeobject.h')
-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 145f774af8..ff6dbc2871 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 */ |