summaryrefslogtreecommitdiffstats
path: root/HDF5Examples/FORTRAN/H5G/h5_version.h.in
blob: 68276759df4e7badbee814654f379b925ce5e1ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
! Version numbers
!
! For major interface/format changes
!
#define H5_VERS_MAJOR @H5_VERS_MAJOR@
!
! For minor interface/format changes
!
#define H5_VERS_MINOR @H5_VERS_MINOR@
!
! For tweaks, bug-fixes, or development
!
#define H5_VERS_RELEASE @H5_VERS_RELEASE@

! macros for comparing versions

#define H5_VERSION_GE(Maj, Min, Rel)                                                                         \
    (((H5_VERS_MAJOR == Maj) && (H5_VERS_MINOR == Min) && (H5_VERS_RELEASE >= Rel)) ||                       \
     ((H5_VERS_MAJOR == Maj) && (H5_VERS_MINOR > Min)) || (H5_VERS_MAJOR > Maj))

#define H5_VERSION_LE(Maj, Min, Rel)                                                                         \
    (((H5_VERS_MAJOR == Maj) && (H5_VERS_MINOR == Min) && (H5_VERS_RELEASE <= Rel)) ||                       \
     ((H5_VERS_MAJOR == Maj) && (H5_VERS_MINOR < Min)) || (H5_VERS_MAJOR < Maj))