From 102e4deecfafe4c1df0723f60be330ddd4cde965 Mon Sep 17 00:00:00 2001 From: Binh-Minh Ribler Date: Mon, 10 May 2004 22:45:53 -0500 Subject: [svn-r8502] Purpose: Fix bug #124 (Bugzilla) Description: Build failed on Windows because the C++ API provides support for Stream VFD, yet this feature is disabled on Windows, making its support from the C library unavailable. Solution: Added #ifdef H5_HAVE_STREAM to properly support Stream VFD. Platforms tested: Linux 2.4 (eirene) Windows 2000 Misc. update: --- c++/src/H5FaccProp.cpp | 2 ++ c++/src/H5FaccProp.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/c++/src/H5FaccProp.cpp b/c++/src/H5FaccProp.cpp index 7ae126d..50dc91a 100644 --- a/c++/src/H5FaccProp.cpp +++ b/c++/src/H5FaccProp.cpp @@ -277,6 +277,7 @@ void FileAccPropList::setSplit( FileAccPropList& meta_plist, FileAccPropList& ra setSplit( meta_plist, raw_plist, meta_ext.c_str(), raw_ext.c_str() ); } +#ifdef H5_HAVE_STREAM // for Stream Virtual File Driver //-------------------------------------------------------------------------- // Function: FileAccPropList::getStream ///\brief Retrieves the streaming I/O driver settings @@ -316,6 +317,7 @@ void FileAccPropList::setStream(H5FD_stream_fapl_t &fapl) const throw PropListIException("FileAccPropList::setStream", "H5Pset_fapl_stream failed"); } } +#endif // Stream Virtual File Driver //-------------------------------------------------------------------------- // Function: FileAccPropList::getSieveBufSize diff --git a/c++/src/H5FaccProp.h b/c++/src/H5FaccProp.h index 2063249..e10c7d0 100644 --- a/c++/src/H5FaccProp.h +++ b/c++/src/H5FaccProp.h @@ -69,11 +69,13 @@ class H5_DLLCPP FileAccPropList : public PropList { void setSplit( FileAccPropList& meta_plist, FileAccPropList& raw_plist, const string& meta_ext, const string& raw_ext ) const; +#ifdef H5_HAVE_STREAM // for Stream Virtual File Driver // Modifies this file access property list to use the Stream driver. void setStream(H5FD_stream_fapl_t &fapl) const; // Retrieves the streaming I/O driver settings H5FD_stream_fapl_t getStream() const; +#endif // Sets the maximum size of the data sieve buffer. void setSieveBufSize(size_t bufsize) const; -- cgit v0.12