From ea126d3175ecd21bc50c6ef67e4aae8c1f6c433d Mon Sep 17 00:00:00 2001 From: rdb Date: Tue, 29 Oct 2013 17:42:58 +0000 Subject: [PATCH] missed a few PY_VERSION_HEX checks for buffer interface support --- panda/src/express/pointerToArray.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/panda/src/express/pointerToArray.h b/panda/src/express/pointerToArray.h index 822d1d8902..c5f545fbd3 100644 --- a/panda/src/express/pointerToArray.h +++ b/panda/src/express/pointerToArray.h @@ -238,8 +238,10 @@ public: INLINE bool node_unref() const; #ifdef HAVE_PYTHON +#if PY_VERSION_HEX >= 0x02060000 int __getbuffer__(PyObject *self, Py_buffer *view, int flags); void __releasebuffer__(PyObject *self, Py_buffer *view) const; +#endif #endif // Reassignment is by pointer, not memberwise as with a vector. @@ -295,9 +297,11 @@ PUBLISHED: INLINE int get_node_ref_count() const; #ifdef HAVE_PYTHON +#if PY_VERSION_HEX >= 0x02060000 int __getbuffer__(PyObject *self, Py_buffer *view, int flags) const; void __releasebuffer__(PyObject *self, Py_buffer *view) const; #endif +#endif #else // CPPPARSER // This is the actual, complete interface. @@ -370,8 +374,10 @@ PUBLISHED: INLINE bool node_unref() const; #ifdef HAVE_PYTHON +#if PY_VERSION_HEX >= 0x02060000 int __getbuffer__(PyObject *self, Py_buffer *view, int flags) const; void __releasebuffer__(PyObject *self, Py_buffer *view) const; +#endif #endif // Reassignment is by pointer, not memberwise as with a vector.