Mercurial > hg > vampy-host
diff native/PyRealTime.h @ 121:c45f957ef4d9
Add NumPy include path to setup; remove PyAPI stuff from non-PyAPI calls
author | Chris Cannam |
---|---|
date | Tue, 23 Jun 2015 10:43:08 +0100 |
parents | 2370b942cd32 |
children |
line wrap: on
line diff
--- a/native/PyRealTime.h Mon Jun 22 16:31:44 2015 +0100 +++ b/native/PyRealTime.h Tue Jun 23 10:43:08 2015 +0100 @@ -46,15 +46,15 @@ Vamp::RealTime *rt; } RealTimeObject; -PyAPI_DATA(PyTypeObject) RealTime_Type; +extern PyTypeObject RealTime_Type; #define PyRealTime_Check(v) PyObject_TypeCheck(v, &RealTime_Type) #define PyRealTime_AS_REALTIME(v) ((const RealTimeObject* const) (v))->rt -PyAPI_FUNC(PyObject *) +extern PyObject * PyRealTime_FromRealTime(const Vamp::RealTime&); -PyAPI_FUNC(const Vamp::RealTime*) +extern const Vamp::RealTime * PyRealTime_AsRealTime (PyObject *self); #endif