diff --git a/xbob/io/hdf5.cpp b/xbob/io/hdf5.cpp
index 9eb330dd97624aaf9eb962ff5a2e8eab1b59fdf9..0ff06035883b008c1eb4857763ad79d63a454808 100644
--- a/xbob/io/hdf5.cpp
+++ b/xbob/io/hdf5.cpp
@@ -332,7 +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__)
+#if defined(__LP64__) || defined(__APPLE__)
     case NPY_LONGLONG:
                          switch (NPY_BITSOF_LONGLONG) {
                            case 8: return bob::io::i8;