diff options
author | Patrick Lu <ptlu@hawkwind.ncsa.uiuc.edu> | 1999-01-11 19:09:17 (GMT) |
---|---|---|
committer | Patrick Lu <ptlu@hawkwind.ncsa.uiuc.edu> | 1999-01-11 19:09:17 (GMT) |
commit | 58295f0c15f5be6badf33b75994e64b045172985 (patch) | |
tree | b8337c5f6485f8939f9eebc2c7577bef9b6665f0 /src/H5Flow.c | |
parent | adc514bf969a44936de029ed85c852f64cf74504 (diff) | |
download | hdf5-58295f0c15f5be6badf33b75994e64b045172985.zip hdf5-58295f0c15f5be6badf33b75994e64b045172985.tar.gz hdf5-58295f0c15f5be6badf33b75994e64b045172985.tar.bz2 |
[svn-r1018] need to put a fix for a bug in the Microsoft compiler.
Diffstat (limited to 'src/H5Flow.c')
-rw-r--r-- | src/H5Flow.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/H5Flow.c b/src/H5Flow.c index 3211886..e4dd2ba 100644 --- a/src/H5Flow.c +++ b/src/H5Flow.c @@ -487,7 +487,19 @@ H5F_low_access(const H5F_low_class_t *type, const char *name, if (type->access) { ret_value = (type->access) (name, access_parms, mode, key /*out*/); - +#ifdef WIN32 + /* + this extra block is needed because windows sets the st_dev member of sb + to be 0 if it is a file which makes the comparison below wrong + */ + int fid; + + fid=open(name,mode|_O_BINARY); + HDfstat(fid,&sb); + close(fid); +#else + HDstat(name, &sb); +#endif } else { ret_value = (0 == HDaccess(name, mode) ? TRUE : FALSE); if (key) { |