[Python-bugs-list] [ python-Bugs-428419 ] include/rangeobject.h needs extern "C"

noreply@sourceforge.net noreply@sourceforge.net
Tue, 29 May 2001 12:53:41 -0700


Bugs item #428419, was updated on 2001-05-29 12:53
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=428419&group_id=5470

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Barry Alan Scott (barry-scott)
Assigned to: Nobody/Anonymous (nobody)
Summary: include/rangeobject.h needs extern "C"

Initial Comment:
include/rangeobject.h needs extern "C" if compiling
for C++ as the other .h files have.

The workaround is to add these lines to the my app 
code:

extern "C" DL_IMPORT(PyTypeObject) PyRange_Type;
extern "C" DL_IMPORT(PyObject *) PyRange_New(long, 
long, long, int);



----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=428419&group_id=5470