Skip to content
Snippets Groups Projects
Commit b3675328 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

No commit message

No commit message
parent 2a57a3a0
No related branches found
No related tags found
No related merge requests found
......@@ -23,15 +23,23 @@ const char *cdfLibraryVersion(void)
#endif
}
int H5get_libversion(unsigned *majnum, unsigned *minnum, unsigned *relnum);
#if (defined (HAVE_LIBNETCDF) && defined(NC_NETCDF4)) || defined(HAVE_LIBHDF5)
#if defined(__cplusplus)
extern "C" {
#endif
int H5get_libversion(unsigned *, unsigned *, unsigned *);
#if defined(__cplusplus)
}
#endif
#endif
const char *hdfLibraryVersion(void)
{
#if defined (HAVE_LIBNETCDF) && defined(NC_NETCDF4)
#if (defined (HAVE_LIBNETCDF) && defined(NC_NETCDF4)) || defined(HAVE_LIBHDF5)
static char hdf_libvers[256];
unsigned majnum, minnum, relnum;
(void) H5get_libversion(&majnum, &minnum, &relnum);
H5get_libversion(&majnum, &minnum, &relnum);
sprintf(hdf_libvers, "%u.%u.%u", majnum, minnum, relnum);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment