From 1e352a6632788ce8a947b54fe26589768fc1d074 Mon Sep 17 00:00:00 2001
From: Andre Anjos <andre.anjos@idiap.ch>
Date: Tue, 18 Feb 2014 15:12:32 +0100
Subject: [PATCH] Fixes compilation on 32-bit machines

---
 xbob/io/hdf5.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/xbob/io/hdf5.cpp b/xbob/io/hdf5.cpp
index 3e585bc..9eb330d 100644
--- a/xbob/io/hdf5.cpp
+++ b/xbob/io/hdf5.cpp
@@ -332,6 +332,7 @@ static bob::io::hdf5type PyBobIo_H5FromTypenum (int type_num) {
 #ifdef NPY_COMPLEX256
     case NPY_COMPLEX256: return bob::io::c256;
 #endif
+#if define(__LP64__) || defined(__APPLE__)
     case NPY_LONGLONG:
                          switch (NPY_BITSOF_LONGLONG) {
                            case 8: return bob::io::i8;
@@ -350,6 +351,7 @@ static bob::io::hdf5type PyBobIo_H5FromTypenum (int type_num) {
                            default: return bob::io::unsupported;
                          }
                          break;
+#endif
     default:             return bob::io::unsupported;
   }
 
@@ -1989,7 +1991,7 @@ static PyObject* PyBobIoHDF5File_SetAttribute(PyBobIoHDF5FileObject* self, PyObj
   PyObject* converted = 0;
   int is_array = PyBobIoHDF5File_GetObjectType(value, type, &converted);
   auto converted_ = make_xsafe(converted);
-  
+
   if (is_array < 0) { ///< error condition, signal
     PyErr_Format(PyExc_TypeError, "error setting attribute `%s' of resource `%s' at HDF5 file `%s': no support for storing objects of type `%s' on HDF5 files", name, path, self->f->filename().c_str(), Py_TYPE(value)->tp_name);
     return 0;
-- 
GitLab