diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2004-05-11 03:45:53 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2004-05-11 03:45:53 (GMT) |
commit | 102e4deecfafe4c1df0723f60be330ddd4cde965 (patch) | |
tree | e72e72b260082817e0b2e4995bf558eebe5126df /c++ | |
parent | b6449ce42ea1892a7e9d9d3c7d74111ce653ab3f (diff) | |
download | hdf5-102e4deecfafe4c1df0723f60be330ddd4cde965.zip hdf5-102e4deecfafe4c1df0723f60be330ddd4cde965.tar.gz hdf5-102e4deecfafe4c1df0723f60be330ddd4cde965.tar.bz2 |
[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:
Diffstat (limited to 'c++')
-rw-r--r-- | c++/src/H5FaccProp.cpp | 2 | ||||
-rw-r--r-- | c++/src/H5FaccProp.h | 2 |
2 files changed, 4 insertions, 0 deletions
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; |