From b7f3219317b6b07f582337d93a21ad85981bb837 Mon Sep 17 00:00:00 2001 From: Andre Anjos <andre.dos.anjos@gmail.com> Date: Tue, 19 Nov 2013 08:54:39 +0100 Subject: [PATCH] A few API refinements --- xbob/io/include/xbob.io/api.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xbob/io/include/xbob.io/api.h b/xbob/io/include/xbob.io/api.h index 51b6c8d..c37d6e4 100644 --- a/xbob/io/include/xbob.io/api.h +++ b/xbob/io/include/xbob.io/api.h @@ -266,6 +266,8 @@ typedef struct { # define PyBobIoHDF5File_Converter (*(PyBobIoHDF5File_Converter_RET (*)PyBobIoHDF5File_Converter_PROTO) PyXbobIo_API[PyBobIoHDF5File_Converter_NUM]) +# if !defined(NO_IMPORT_ARRAY) + /** * Returns -1 on error, 0 on success. PyCapsule_Import will set an exception * if there's an error. @@ -320,6 +322,8 @@ typedef struct { } +# endif //!defined(NO_IMPORT_ARRAY) + #endif /* XBOB_IO_MODULE */ #endif /* XBOB_IO_H */ -- GitLab