Fix compilation error on some msvc versions.

[SVN r26580]
This commit is contained in:
Vladimir Prus 2004-12-23 11:50:43 +00:00
parent 9b503a0bb5
commit 7f649c3f09
2 changed files with 2 additions and 2 deletions

View File

@ -172,7 +172,7 @@ int file_is_file(char* filename)
if( stat( filename, &statbuf ) < 0 )
return -1;
if (S_ISREG(statbuf.st_mode))
if (statbuf.st_mode & _S_IFREG)
return 1;
else
return 0;

View File

@ -172,7 +172,7 @@ int file_is_file(char* filename)
if( stat( filename, &statbuf ) < 0 )
return -1;
if (S_ISREG(statbuf.st_mode))
if (statbuf.st_mode & _S_IFREG)
return 1;
else
return 0;