quadEM  7-0
NDFileHDF5VersionCheck.h
Go to the documentation of this file.
1 /* NDFileHDF5VersionCheck.h
2  *
3  * The purpose of this file is to implement the version check
4  * macro that is missing in some older versions of the HDF5
5  * library. The individual version numbers are still defined
6  * but the actual macro for checking was introduced in the
7  * later versions of the library.
8  *
9  * Alan Greer
10  * February 18, 2016
11  */
12 #ifndef NDFILEHDF5VERSIONCHECK_H_
13 #define NDFILEHDF5VERSIONCHECK_H_
14 
15 #include <hdf5.h>
16 
17 #ifndef H5_VERSION_GE
18 #define H5_VERSION_GE(Maj,Min,Rel) \
19  (((H5_VERS_MAJOR==Maj) && (H5_VERS_MINOR==Min) && (H5_VERS_RELEASE>=Rel)) || \
20  ((H5_VERS_MAJOR==Maj) && (H5_VERS_MINOR>Min)) || \
21  (H5_VERS_MAJOR>Maj))
22 #endif
23 
24 #endif // NDFILEHDF5VERSIONCHECK_H_
25