FbTk/FileUtil.cc: Use only file masks defined.
Needed for mingw-cross-env
This commit is contained in:
parent
1ba4fbe878
commit
75c6cee969
1 changed files with 8 additions and 3 deletions
|
@ -63,9 +63,14 @@ bool FileUtil::isExecutable(const char* filename) {
|
|||
if (!filename || stat(filename, &buf))
|
||||
return false;
|
||||
|
||||
return buf.st_mode & S_IXUSR ||
|
||||
buf.st_mode & S_IXGRP ||
|
||||
buf.st_mode & S_IXOTH;
|
||||
return buf.st_mode & S_IXUSR
|
||||
#ifdef S_IXGRP
|
||||
|| buf.st_mode & S_IXGRP
|
||||
#endif
|
||||
#ifdef S_IXOTH
|
||||
|| buf.st_mode & S_IXOTH
|
||||
#endif
|
||||
;
|
||||
}
|
||||
|
||||
bool FileUtil::copyFile(const char* from, const char* to) {
|
||||
|
|
Loading…
Reference in a new issue