# HG changeset patch # User cannam # Date 1253782324 0 # Node ID 2ba482378038af23ff571d710ec00df988b94bb4 # Parent c905122f79e7ba29b49257aa61783b3e2f5152c6 * Fix compile error with VC++. I am totally at a loss to explain why this should have compiled with any other compiler! * Update VC project file. This code does now build with VC++ without HAVE_NUMPY -- I haven't installed Numpy yet diff -r c905122f79e7 -r 2ba482378038 PyTypeInterface.cpp --- a/PyTypeInterface.cpp Wed Sep 23 12:07:32 2009 +0000 +++ b/PyTypeInterface.cpp Thu Sep 24 08:52:04 2009 +0000 @@ -108,7 +108,7 @@ } // convert the first element of any iterable sequence (for convenience and backwards compatibility) - if (PySequence_Check(pyValue) and PySequence_Size(pyValue) > 0) + if (PySequence_Check(pyValue) && PySequence_Size(pyValue) > 0) { PyObject* item = PySequence_GetItem(pyValue,0); if (item) @@ -188,7 +188,7 @@ } // convert the first element of iterable sequences - if (PySequence_Check(pyValue) and PySequence_Size(pyValue) > 0) + if (PySequence_Check(pyValue) && PySequence_Size(pyValue) > 0) { PyObject* item = PySequence_GetItem(pyValue,0); if (item) diff -r c905122f79e7 -r 2ba482378038 VamPy.vcproj --- a/VamPy.vcproj Wed Sep 23 12:07:32 2009 +0000 +++ b/VamPy.vcproj Thu Sep 24 08:52:04 2009 +0000 @@ -114,7 +114,7 @@ + + + + + + + + + + @@ -185,6 +205,14 @@ RelativePath=".\PyPlugScanner.h" > + + + + + + + + + + + + + + @@ -210,7 +258,15 @@ > + + + +