summaryrefslogtreecommitdiffstats
path: root/fortran/src/H5Dff_F03.f90
diff options
context:
space:
mode:
authorScot Breitenfeld <brtnfld@hdfgroup.org>2015-01-22 21:56:03 (GMT)
committerScot Breitenfeld <brtnfld@hdfgroup.org>2015-01-22 21:56:03 (GMT)
commit1e3f530848f1fed0ac42b7324c110bd9e6a7bb7e (patch)
tree386e982acb1e8dc0f003760a449a7f5254fc312b /fortran/src/H5Dff_F03.f90
parent324f087d050863aee2ab0222b4ed1a56301a3185 (diff)
downloadhdf5-1e3f530848f1fed0ac42b7324c110bd9e6a7bb7e.zip
hdf5-1e3f530848f1fed0ac42b7324c110bd9e6a7bb7e.tar.gz
hdf5-1e3f530848f1fed0ac42b7324c110bd9e6a7bb7e.tar.bz2
[svn-r26010] Fix for:
HDFFV-9049 Intel 15.0 15.0.1 Fails with --enable-fortran2003 Added BIND to the Fortran 2003 functions. Tested: windows (tested concept) linux (--enable-fortran and --enable-fortran2003)
Diffstat (limited to 'fortran/src/H5Dff_F03.f90')
-rw-r--r--fortran/src/H5Dff_F03.f9030
1 files changed, 9 insertions, 21 deletions
diff --git a/fortran/src/H5Dff_F03.f90 b/fortran/src/H5Dff_F03.f90
index d39c200..7026ae3 100644
--- a/fortran/src/H5Dff_F03.f90
+++ b/fortran/src/H5Dff_F03.f90
@@ -159,12 +159,9 @@ MODULE H5D_PROVISIONAL
INTEGER FUNCTION h5dwrite_f_c(dset_id, mem_type_id, &
mem_space_id_default , &
file_space_id_default, &
- xfer_prp_default, buf )
+ xfer_prp_default, buf ) BIND(C, NAME='h5dwrite_f_c')
USE H5GLOBAL
- USE, INTRINSIC :: ISO_C_BINDING
- !DEC$IF DEFINED(HDF5F90_WINDOWS)
- !DEC$ATTRIBUTES C,reference,decorate,alias:'H5DWRITE_F_C'::h5dwrite_f_c
- !DEC$ENDIF
+ USE, INTRINSIC :: ISO_C_BINDING, ONLY : c_ptr
INTEGER(HID_T), INTENT(IN) :: dset_id
INTEGER(HID_T), INTENT(IN) :: mem_type_id
INTEGER(HID_T) :: mem_space_id_default
@@ -181,12 +178,9 @@ MODULE H5D_PROVISIONAL
INTEGER FUNCTION h5dread_f_c(dset_id, mem_type_id, &
mem_space_id_default, &
file_space_id_default, &
- xfer_prp_default, buf)
+ xfer_prp_default, buf) BIND(C, NAME='h5dread_f_c')
USE H5GLOBAL
- USE, INTRINSIC :: ISO_C_BINDING
- !DEC$IF DEFINED(HDF5F90_WINDOWS)
- !DEC$ATTRIBUTES C,reference,decorate,alias:'H5DREAD_F_C'::h5dread_f_c
- !DEC$ENDIF
+ USE, INTRINSIC :: ISO_C_BINDING, ONLY : c_ptr
INTEGER(HID_T), INTENT(IN) :: dset_id
INTEGER(HID_T), INTENT(IN) :: mem_type_id
INTEGER(HID_T) :: mem_space_id_default
@@ -207,12 +201,9 @@ MODULE H5D_PROVISIONAL
INTERFACE
INTEGER FUNCTION h5dfill_c(f_ptr_fill_value, fill_type_id, space_id, &
- f_ptr_buf, mem_type_id)
+ f_ptr_buf, mem_type_id) BIND(C, NAME='h5dfill_c')
USE H5GLOBAL
- USE, INTRINSIC :: ISO_C_BINDING
- !DEC$IF DEFINED(HDF5F90_WINDOWS)
- !DEC$ATTRIBUTES C,reference,decorate,alias:'H5DFILL_C'::h5dfill_c
- !DEC$ENDIF
+ USE, INTRINSIC :: ISO_C_BINDING, ONLY : c_ptr
TYPE(C_PTR), VALUE :: f_ptr_fill_value
INTEGER(HID_T) :: fill_type_id ! Fill value datatype identifier
INTEGER(HID_T), INTENT(IN) :: space_id ! Memory dataspace selection identifier
@@ -2369,7 +2360,7 @@ CONTAINS
!
! Fortran2003 Interface:
SUBROUTINE h5dvlen_reclaim_f(type_id, space_id, plist_id, buf, hdferr)
- USE, INTRINSIC :: ISO_C_BINDING
+ USE, INTRINSIC :: ISO_C_BINDING, ONLY : C_PTR
IMPLICIT NONE
INTEGER(HID_T), INTENT(IN) :: type_id
INTEGER(HID_T), INTENT(IN) :: space_id
@@ -2379,12 +2370,9 @@ CONTAINS
!*****
INTERFACE
- INTEGER FUNCTION h5dvlen_reclaim_c(type_id, space_id, plist_id, buf)
+ INTEGER FUNCTION h5dvlen_reclaim_c(type_id, space_id, plist_id, buf) BIND(C, NAME='h5dvlen_reclaim_c')
USE H5GLOBAL
- USE, INTRINSIC :: ISO_C_BINDING
- !DEC$IF DEFINED(HDF5F90_WINDOWS)
- !DEC$ATTRIBUTES C,reference,decorate,alias:'H5DVLEN_RECLAIM_C'::h5dvlen_reclaim_c
- !DEC$ENDIF
+ USE, INTRINSIC :: ISO_C_BINDING, ONLY : C_PTR
INTEGER(HID_T) :: type_id
INTEGER(HID_T) :: space_id
INTEGER(HID_T) :: plist_id