[svn-r1018] need to put a fix for a bug in the Microsoft compiler.

This commit is contained in:
Patrick Lu 1999-01-11 14:09:17 -05:00
parent adc514bf96
commit 58295f0c15

View File

@ -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) {