summaryrefslogtreecommitdiffstats
path: root/src/H5public.h
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2015-10-08 20:50:15 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2015-10-08 20:50:15 (GMT)
commit1f1081e039bea766161cb7055589b74267764c9b (patch)
tree4322b8502e18562d6c88535ee83c8f0e1720138e /src/H5public.h
parent74ab402e3eb08b53dbf2ad7d3a27b51cfae87f5b (diff)
downloadhdf5-1f1081e039bea766161cb7055589b74267764c9b.zip
hdf5-1f1081e039bea766161cb7055589b74267764c9b.tar.gz
hdf5-1f1081e039bea766161cb7055589b74267764c9b.tar.bz2
[svn-r28009] HDFFV-9536: Changed H5check_version() to use libtool shared library version numbers instead of the library version numbers.
bin/h5vers: Changed to copy the shared lib version from lt_vers.am to H5public.h (Thanks to Larry who made the changes.) src/H5public.h: Changed by bin/h5vers. src/H5.c: Changed H5check_version() to use shared library version for compatibility checking. test/tcheck_version.c: test/testcheck_version.sh.in: Changed to use shared library version numbers instead of the HDF5 library version numbers for testing. Tested: tested in Jam and Kituo.
Diffstat (limited to 'src/H5public.h')
-rw-r--r--src/H5public.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/H5public.h b/src/H5public.h
index 5c43298..d1ac819 100644
--- a/src/H5public.h
+++ b/src/H5public.h
@@ -99,8 +99,8 @@ extern "C" {
/* Empty string for real releases. */
#define H5_VERS_INFO "HDF5 library version: 1.8.16-snap18" /* Full version string */
-#define H5check() H5check_version(H5_VERS_MAJOR,H5_VERS_MINOR, \
- H5_VERS_RELEASE)
+#define H5check() H5check_version(LT_VERS_INTERFACE, LT_VERS_REVISION, \
+ LT_VERS_AGE)
/* macros for comparing the version */
#define H5_VERSION_GE(Maj,Min,Rel) \
@@ -113,6 +113,11 @@ extern "C" {
((H5_VERS_MAJOR==Maj) && (H5_VERS_MINOR<Min)) || \
(H5_VERS_MAJOR<Maj))
+/* LT Version numbers */
+#define LT_VERS_INTERFACE 10
+#define LT_VERS_REVISION 1
+#define LT_VERS_AGE 0
+
/*
* Status return values. Failed integer functions in HDF5 result almost
* always in a negative value (unsigned failing functions sometimes return
@@ -329,8 +334,7 @@ H5_DLL herr_t H5set_free_list_limits (int reg_global_lim, int reg_list_lim,
int blk_list_lim);
H5_DLL herr_t H5get_libversion(unsigned *majnum, unsigned *minnum,
unsigned *relnum);
-H5_DLL herr_t H5check_version(unsigned majnum, unsigned minnum,
- unsigned relnum);
+H5_DLL herr_t H5check_version(unsigned interface, unsigned revision, unsigned age);
H5_DLL herr_t H5is_library_threadsafe(hbool_t *is_ts);
H5_DLL herr_t H5free_memory(void *mem);
H5_DLL void *H5allocate_memory(size_t size, hbool_t clear);