Skip to content

Commit 5ebd9f5

Browse files
committed
Hide deprecated HDF5 API
On Ubuntu 12.04, despite the HDF5 version being 1.8.x, the default HDF5 API is the 'compatibility' API from HDF5 v1.6.x. Declaring H5_NO_DEPRECATED_SYMBOLS fixes this.
1 parent 9a23b99 commit 5ebd9f5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

include/napi5.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33

44
#define NX5SIGNATURE 959695
55

6+
/* Hide deprecated API from HDF5 versions before 1.8
7+
* Required to build on Ubuntu 12.04 */
8+
#define H5_NO_DEPRECATED_SYMBOLS
9+
610
#include <hdf5.h>
711

812
/* HDF5 interface */

0 commit comments

Comments
 (0)