[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:
This commit is contained in:
Elena Pourmal 2005-04-13 19:42:44 -05:00
parent baffe3d733
commit bcbae952b8

View File

@ -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" {