diff options
author | Elena Pourmal <epourmal@hdfgroup.org> | 2005-04-14 00:42:44 (GMT) |
---|---|---|
committer | Elena Pourmal <epourmal@hdfgroup.org> | 2005-04-14 00:42:44 (GMT) |
commit | bcbae952b8c5592ef78cdbce5199d68a9053d12f (patch) | |
tree | 8561177198538f3d74beeac0ee5d861c2dcd6339 /src | |
parent | baffe3d73393c9c7a5ace06b17a74584937c5e54 (diff) | |
download | hdf5-bcbae952b8c5592ef78cdbce5199d68a9053d12f.zip hdf5-bcbae952b8c5592ef78cdbce5199d68a9053d12f.tar.gz hdf5-bcbae952b8c5592ef78cdbce5199d68a9053d12f.tar.bz2 |
[svn-r10601] Purpose: Small bug fix (discovered by Kent on Windows)
Description: When stream driver was not enabled, H5FD_STREAM variable
was not define. Fortran compilation failed since H5FD_STREAM
was needed to set up fortran global variables.
Solution: Followed MPIO driver model and defined H5FD_STREAM to be -1
when driver is not enabled.
Platforms tested: heping with --enable(disable)-stream-vfd
Misc. update:
Diffstat (limited to 'src')
-rw-r--r-- | src/H5FDstream.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/H5FDstream.h b/src/H5FDstream.h index 890eb5a..450726b 100644 --- a/src/H5FDstream.h +++ b/src/H5FDstream.h @@ -17,7 +17,12 @@ #define H5FDstream_H #ifdef H5_HAVE_STREAM +# define H5FD_STREAM (H5FD_stream_init()) +#else +# define H5FD_STREAM (-1) +#endif /*H5_HAVE_STREAM */ +#ifdef H5_HAVE_STREAM /* check what sockets type we have (Unix or Windows sockets) Note that only MS compilers require to use Windows sockets but gcc under Windows does not. */ @@ -40,7 +45,6 @@ #endif -#define H5FD_STREAM (H5FD_stream_init()) #ifdef __cplusplus extern "C" { |