summaryrefslogtreecommitdiffstats
path: root/HDF5Examples/FORTRAN/H5G/h5_version.h.in
diff options
context:
space:
mode:
authorScot Breitenfeld <brtnfld@hdfgroup.org>2023-12-22 21:57:16 (GMT)
committerGitHub <noreply@github.com>2023-12-22 21:57:16 (GMT)
commit695efa94dfcd62c5ef42d03a7f1425c4105819df (patch)
treeaa51dc928c79a19b4f0db9a458312b55a789b3a2 /HDF5Examples/FORTRAN/H5G/h5_version.h.in
parent366f2d94a3f5ee20287de8062a2a2c895e9eb856 (diff)
downloadhdf5-695efa94dfcd62c5ef42d03a7f1425c4105819df.zip
hdf5-695efa94dfcd62c5ef42d03a7f1425c4105819df.tar.gz
hdf5-695efa94dfcd62c5ef42d03a7f1425c4105819df.tar.bz2
Added new H5G Fortran HDF5examples (#3908)
* updated traverse example * added H5PAR success statement * skipping H5_f90_h5ex_g_traverse
Diffstat (limited to 'HDF5Examples/FORTRAN/H5G/h5_version.h.in')
-rw-r--r--HDF5Examples/FORTRAN/H5G/h5_version.h.in23
1 files changed, 23 insertions, 0 deletions
diff --git a/HDF5Examples/FORTRAN/H5G/h5_version.h.in b/HDF5Examples/FORTRAN/H5G/h5_version.h.in
new file mode 100644
index 0000000..6827675
--- /dev/null
+++ b/HDF5Examples/FORTRAN/H5G/h5_version.h.in
@@ -0,0 +1,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))