From 58295f0c15f5be6badf33b75994e64b045172985 Mon Sep 17 00:00:00 2001 From: Patrick Lu Date: Mon, 11 Jan 1999 14:09:17 -0500 Subject: [svn-r1018] need to put a fix for a bug in the Microsoft compiler. --- src/H5Flow.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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) { -- cgit v0.12