summaryrefslogtreecommitdiffstats
path: root/src/H5FDstdio.c
diff options
context:
space:
mode:
authorPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1999-10-29 15:57:26 (GMT)
committerPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1999-10-29 15:57:26 (GMT)
commitea1264842e079187937c8dc27c91edb3702c06bf (patch)
tree3dedacbbaeef08e6c63566de2129f9b9a191d793 /src/H5FDstdio.c
parente8c278dc98e0d04a6223fcd46c7e482f21ff2430 (diff)
downloadhdf5-ea1264842e079187937c8dc27c91edb3702c06bf.zip
hdf5-ea1264842e079187937c8dc27c91edb3702c06bf.tar.gz
hdf5-ea1264842e079187937c8dc27c91edb3702c06bf.tar.bz2
[svn-r1799] got rid of the include of the private header file
Diffstat (limited to 'src/H5FDstdio.c')
-rw-r--r--src/H5FDstdio.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/H5FDstdio.c b/src/H5FDstdio.c
index eda0e7e..4c3ca45 100644
--- a/src/H5FDstdio.c
+++ b/src/H5FDstdio.c
@@ -14,7 +14,7 @@
#include <assert.h>
#include <stdlib.h>
#include <sys/stat.h>
-#include "h5private.h"
+
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
@@ -26,7 +26,12 @@
#undef MAX
#endif /* MAX */
#define MAX(X,Y) ((X)>(Y)?(X):(Y))
+#ifndef F_OK
+#define F_OK 00
+#define W_OK 02
+#define R_OK 04
+#endif
/* The driver identification number, initialized at runtime */
static hid_t H5FD_STDIO_g = 0;
@@ -545,7 +550,7 @@ H5FD_stdio_read(H5FD_t *_file, hid_t dxpl_id, haddr_t addr, hsize_t size,
/* Check easy cases */
if (0 == size)
return(0);
- if ((uint64_t)addr >= file->eof) {
+ if ((haddr_t)addr >= file->eof) {
memset(buf, 0, size);
return(0);
}