summaryrefslogtreecommitdiffstats
path: root/src/H5FDstream.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5FDstream.h')
-rw-r--r--src/H5FDstream.h6
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" {