mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-18 15:15:56 +08:00
[svn-r1797] included the h5private.h file to get a definition of F_OK and
got rid of the #error for WIN32
This commit is contained in:
parent
aee39d449d
commit
b37a0cba06
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user