Skip to content

Commit

Permalink
condition H5F_LIBVER_LATEST and friends on libversion (#480)
Browse files Browse the repository at this point in the history
* condition H5F_LIBVER_LATEST and friends on libversion
  • Loading branch information
ggggggggg authored and musm committed May 15, 2018
1 parent 88a8066 commit 026aaac
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/HDF5.jl
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,15 @@ const H5T_NATIVE_UINT64 = read_const(:H5T_NATIVE_UINT64_g)
const H5T_NATIVE_FLOAT = read_const(:H5T_NATIVE_FLOAT_g)
const H5T_NATIVE_DOUBLE = read_const(:H5T_NATIVE_DOUBLE_g)
# Library versions
const H5F_LIBVER_EARLIEST = 0
const H5F_LIBVER_LATEST = 1
if libversion >= v"1.10.2"
const H5F_LIBVER_EARLIEST = 0
const H5F_LIBVER_V18 = 1
const H5F_LIBVER_V110 = 2
const H5F_LIBVER_LATEST = H5F_LIBVER_V110
else
const H5F_LIBVER_EARLIEST = 0
const H5F_LIBVER_LATEST = 1
end

# Object reference types
struct HDF5ReferenceObj
Expand Down Expand Up @@ -2399,7 +2406,7 @@ end
get_datasets(file::HDF5File) -> datasets::Vector{HDF5Dataset}
Get all the datasets in an hdf5 file without loading the data.
"""
"""
function get_datasets(file::HDF5File)
list = HDF5Dataset[]
get_datasets!(list, file)
Expand Down

0 comments on commit 026aaac

Please sign in to comment.