Browse Source

Add missing PY_VERSION_HEX guard

rdb 11 years ago
parent
commit
a0f8208dc3
1 changed files with 3 additions and 0 deletions
  1. 3 0
      panda/src/pnmimage/pfmFile.h

+ 3 - 0
panda/src/pnmimage/pfmFile.h

@@ -141,7 +141,10 @@ PUBLISHED:
   void output(ostream &out) const;
   void output(ostream &out) const;
 
 
   EXTENSION(PyObject *get_points() const);
   EXTENSION(PyObject *get_points() const);
+
+#if PY_VERSION_HEX >= 0x02060000
   EXTENSION(int __getbuffer__(PyObject *self, Py_buffer *view, int flags) const);
   EXTENSION(int __getbuffer__(PyObject *self, Py_buffer *view, int flags) const);
+#endif
 
 
 public:
 public:
   INLINE const vector_float &get_table() const;
   INLINE const vector_float &get_table() const;