diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2005-09-21 13:41:09 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2005-09-21 13:41:09 (GMT) |
commit | d09ca66a26e1c7cd57d40fa3fc34f2b7b4c40986 (patch) | |
tree | b24f9f73985b4fed56da48082f163a822b9595c4 /src/H5FDmpiposix.c | |
parent | 4114f888c63ca1fed13d84a93c4bdf173cad443e (diff) | |
download | hdf5-d09ca66a26e1c7cd57d40fa3fc34f2b7b4c40986.zip hdf5-d09ca66a26e1c7cd57d40fa3fc34f2b7b4c40986.tar.gz hdf5-d09ca66a26e1c7cd57d40fa3fc34f2b7b4c40986.tar.bz2 |
[svn-r11448] Purpose:
new features
Description:
add support for compiling the library and testphdf5 in Windows
Solution:
Platforms tested:
Linux
AIX
Solaris
Windows VC6
Misc. update:
Diffstat (limited to 'src/H5FDmpiposix.c')
-rw-r--r-- | src/H5FDmpiposix.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/H5FDmpiposix.c b/src/H5FDmpiposix.c index bce6abb..0a7a20e 100644 --- a/src/H5FDmpiposix.c +++ b/src/H5FDmpiposix.c @@ -130,7 +130,6 @@ typedef struct H5FD_mpiposix_t { * either lseek() or lseek64(). */ /* adding for windows NT file system support. */ -/* pvn: added __MWERKS__ support. */ #ifdef H5_HAVE_LSEEK64 # define file_offset_t off64_t @@ -751,7 +750,12 @@ H5FD_mpiposix_open(const char *name, unsigned flags, hid_t fapl_id, /* Set the general file information */ file->fd = fd; file->eof = sb.st_size; + + /* for WIN32 support. WIN32 'stat' does not have st_blksize and st_blksize + is only used for the H5_HAVE_GPFS case */ +#ifdef H5_HAVE_GPFS file->blksize = sb.st_blksize; +#endif /* Set this field in the H5FD_mpiposix_t struct for later use */ file->use_gpfs = fa->use_gpfs; @@ -1372,7 +1376,7 @@ H5FD_mpiposix_flush(H5FD_t *_file, hid_t UNUSED dxpl_id, unsigned UNUSED closing if(file->mpi_rank == H5_PAR_META_WRITE) { #ifdef WIN32 /* Map the posix file handle to a Windows file handle */ - filehandle = _get_osfhandle(fd); + filehandle = _get_osfhandle(file->fd); /* Translate 64-bit integers into form Windows wants */ /* [This algorithm is from the Windows documentation for SetFilePointer()] */ |