From a0f8208dc3b1dfcb203dfe93cae5dce90c974283 Mon Sep 17 00:00:00 2001 From: rdb Date: Sun, 9 Mar 2014 11:21:54 +0000 Subject: [PATCH] Add missing PY_VERSION_HEX guard --- panda/src/pnmimage/pfmFile.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/panda/src/pnmimage/pfmFile.h b/panda/src/pnmimage/pfmFile.h index 1a212fbfb1..7f22ef79c0 100644 --- a/panda/src/pnmimage/pfmFile.h +++ b/panda/src/pnmimage/pfmFile.h @@ -141,7 +141,10 @@ PUBLISHED: void output(ostream &out) const; EXTENSION(PyObject *get_points() const); + +#if PY_VERSION_HEX >= 0x02060000 EXTENSION(int __getbuffer__(PyObject *self, Py_buffer *view, int flags) const); +#endif public: INLINE const vector_float &get_table() const;