Fix compilation error on some msvc versions.
[SVN r26580]
This commit is contained in:
parent
9b503a0bb5
commit
7f649c3f09
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user