From bcbae952b8c5592ef78cdbce5199d68a9053d12f Mon Sep 17 00:00:00 2001 From: Elena Pourmal Date: Wed, 13 Apr 2005 19:42:44 -0500 Subject: [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: --- src/H5FDstream.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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" { -- cgit v0.12