Commit 661e4fc8 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

printLibraries: bug fix.

parent 827b55cd
......@@ -153,13 +153,14 @@ printLibraries(void)
#ifdef HAVE_LIBHDF5
fprintf(stderr, " HDF5");
#ifdef H5_VERS_MAJOR
unsigned h5h_majnum = H5_VERS_MAJOR, h5h_minnum = H5_VERS_MINOR, h5h_relnum = H5_VERS_RELEASE;
fprintf(stderr, "/%u.%u.%u", h5h_majnum, h5h_minnum, h5h_relnum);
unsigned h5l_majnum, h5l_minnum, h5l_relnum;
H5get_libversion(&h5l_majnum, &h5l_minnum, &h5l_relnum);
fprintf(stderr, "/%u.%u.%u", h5l_majnum, h5l_minnum, h5l_relnum);
unsigned h5h_majnum = H5_VERS_MAJOR, h5h_minnum = H5_VERS_MINOR, h5h_relnum = H5_VERS_RELEASE;
if ((h5h_majnum != h5l_majnum) || (h5h_minnum != h5l_minnum) || (h5h_relnum != h5l_relnum))
fprintf(stderr, "(%u.%u.%u)", h5l_majnum, h5l_minnum, h5l_relnum);
fprintf(stderr, "(h%u.%u.%u)", h5h_majnum, h5h_minnum, h5h_relnum);
#endif
#endif
/*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment