From e45ee9fa961b7c375c244757609f297d2cf46eea Mon Sep 17 00:00:00 2001 From: "M. Scot Breitenfeld" Date: Thu, 29 Sep 2016 14:52:26 -0500 Subject: Fixed test to use storage_size instead of c_sizeof when available. --- fortran/test/tf.F90 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fortran/test/tf.F90 b/fortran/test/tf.F90 index 8797cc3..ee5a857 100644 --- a/fortran/test/tf.F90 +++ b/fortran/test/tf.F90 @@ -337,11 +337,11 @@ CONTAINS IMPLICIT NONE TYPE(comp_datatype), INTENT(in) :: a -#ifdef H5_FORTRAN_HAVE_C_SIZEOF - H5_SIZEOF_CMPD = C_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 -# ifdef H5_FORTRAN_HAVE_STORAGE_SIZE - H5_SIZEOF_CMPD = storage_size(a, c_size_t)/storage_size(c_char_'a',c_size_t) +# ifdef H5_FORTRAN_HAVE_C_SIZEOF + H5_SIZEOF_CMPD = C_SIZEOF(a) # else H5_SIZEOF_CMPD = SIZEOF(a) # endif -- cgit v0.12