FbTk/FileUtil.cc: Use only file masks defined.

Needed for mingw-cross-env
This commit is contained in:
Ryan Pavlik 2011-10-28 11:58:50 -05:00
parent 1ba4fbe878
commit 75c6cee969

View file

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