summaryrefslogtreecommitdiffstats
path: root/src/H5FDstream.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2001-06-29 19:49:53 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2001-06-29 19:49:53 (GMT)
commit8c2c4cd51cb8dd1393acad65e3f015d76bfd9563 (patch)
treea663d3ab5cc66e53485a66d973b55dbb571640be /src/H5FDstream.c
parent098ed81ec88483581d08974f27a62bf42a836fc3 (diff)
downloadhdf5-8c2c4cd51cb8dd1393acad65e3f015d76bfd9563.zip
hdf5-8c2c4cd51cb8dd1393acad65e3f015d76bfd9563.tar.gz
hdf5-8c2c4cd51cb8dd1393acad65e3f015d76bfd9563.tar.bz2
[svn-r4088] Purpose:
Code cleanup Description: Recent CodeWarrior patches have broken the Unix builds and moved code around in non-portable ways. Solution: Patched things back up to try to accomodate CodeWarrior and still let the Unix builds work correctly. Platforms tested: FreeBSD 4.3 (hawkwind)
Diffstat (limited to 'src/H5FDstream.c')
-rw-r--r--src/H5FDstream.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/H5FDstream.c b/src/H5FDstream.c
index 9db2b18..924ab9e 100644
--- a/src/H5FDstream.c
+++ b/src/H5FDstream.c
@@ -26,8 +26,6 @@
/* Only build this driver if it was configured with --with-Stream-VFD */
#ifdef H5_HAVE_STREAM
-#include "H5private.h"
-
#include "H5Eprivate.h" /* error handling */
#include "H5FDpublic.h" /* VFD structures */
#include "H5MMprivate.h" /* memory allocation */
@@ -134,10 +132,11 @@ static const H5FD_stream_fapl_t default_fapl =
* REGION_OVERFLOW: Checks whether an address and size pair describe data
* which can be addressed entirely in memory.
*/
-
-
-
-
+#ifdef H5_HAVE_LSEEK64
+# define file_offset_t off64_t
+#else
+# define file_offset_t off_t
+#endif
#define MAXADDR (((haddr_t)1<<(8*sizeof(file_offset_t)-1))-1)
#define ADDR_OVERFLOW(A) (HADDR_UNDEF==(A) || \
((A) & ~(haddr_t)MAXADDR))