[svn-r30259] Fixed: HDFFV-9965: HDF5 Fails to build when sizeof or c_sizeof is not available in Fortran

Added the use of 'storage_size' if 'c_sizeof' is not available.

Tested (jelly, intel)
This commit is contained in:
Scot Breitenfeld 2016-08-05 13:30:53 -05:00
parent f0365885b4
commit a4e4094c76

View File

@ -339,7 +339,11 @@ CONTAINS
#ifdef H5_FORTRAN_HAVE_C_SIZEOF
H5_SIZEOF_CMPD = C_SIZEOF(a)
#else
H5_SIZEOF_CMPD = SIZEOF(a)
# ifdef H5_FORTRAN_HAVE_STORAGE_SIZE
H5_SIZEOF_CMPD = storage_size(a, c_size_t)/storage_size(c_char_'a',c_size_t)
# else
H5_SIZEOF_CMPD = SIZEOF(a)
# endif
#endif
END FUNCTION H5_SIZEOF_CMPD