Mercurial > hg > vampy
diff PyTypeInterface.h @ 77:5e26aaba2eed
Build fixes for MinGW32
author | Chris Cannam |
---|---|
date | Wed, 25 Feb 2015 14:05:47 +0000 |
parents | 5664fe298af2 |
children | ef4989f33648 |
line wrap: on
line diff
--- a/PyTypeInterface.h Fri Nov 28 15:28:31 2014 +0000 +++ b/PyTypeInterface.h Wed Feb 25 14:05:47 2015 +0000 @@ -328,6 +328,7 @@ return rValue; } +#ifdef HAVE_NUMPY /// this is a special case. numpy.float64 has an array interface but no array descriptor inline std::vector<float> PyArray0D_Convert(PyArrayInterface *ai) const { @@ -343,7 +344,8 @@ #endif return rValue; } - +#endif + //Vamp specific types Vamp::Plugin::FeatureSet PyValue_To_FeatureSet(PyObject*) const; inline void PyValue_To_rValue(PyObject *pyValue, Vamp::Plugin::FeatureSet &r) const