summaryrefslogtreecommitdiffstats
path: root/src/H5FDstdio.c
diff options
context:
space:
mode:
authorPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1999-10-27 19:04:23 (GMT)
committerPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1999-10-27 19:04:23 (GMT)
commitb37a0cba06ed9d166d50b99512934ad0de273209 (patch)
tree6f849daf1c319af1a303ac3c48ee9e735c4a1350 /src/H5FDstdio.c
parentaee39d449d1515aaf0ab56913a3471f72c22f081 (diff)
downloadhdf5-b37a0cba06ed9d166d50b99512934ad0de273209.zip
hdf5-b37a0cba06ed9d166d50b99512934ad0de273209.tar.gz
hdf5-b37a0cba06ed9d166d50b99512934ad0de273209.tar.bz2
[svn-r1797] included the h5private.h file to get a definition of F_OK and
got rid of the #error for WIN32
Diffstat (limited to 'src/H5FDstdio.c')
-rw-r--r--src/H5FDstdio.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/H5FDstdio.c b/src/H5FDstdio.c
index 0052b69..eda0e7e 100644
--- a/src/H5FDstdio.c
+++ b/src/H5FDstdio.c
@@ -14,6 +14,7 @@
#include <assert.h>
#include <stdlib.h>
#include <sys/stat.h>
+#include "h5private.h"
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
@@ -300,8 +301,8 @@ H5FD_stdio_open( const char *name, unsigned flags, hid_t fapl_id,
/* The unique key */
#ifdef WIN32
-#error "Needs correct fileindexhi & fileindexlo, code below is from sec2 driver"
- filehandle = _get_osfhandle(fd);
+//#error "Needs correct fileindexhi & fileindexlo, code below is from sec2 driver"
+ filehandle = _get_osfhandle(f);
results = GetFileInformationByHandle(filehandle, &fileinfo);
file->fileindexhi = fileinfo.nFileIndexHigh;
file->fileindexlo = fileinfo.nFileIndexLow;