diff options
-rw-r--r-- | SystemTools.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/SystemTools.cxx b/SystemTools.cxx index 880b2d2..8ec3058 100644 --- a/SystemTools.cxx +++ b/SystemTools.cxx @@ -3010,7 +3010,11 @@ bool SystemTools::FileIsDirectory(const std::string& inName) bool SystemTools::FileIsExecutable(const std::string& name) { +#if defined(_WIN32) + return SystemTools::FileExists(name, true); +#else return !FileIsDirectory(name) && TestFileAccess(name, TEST_FILE_EXECUTE); +#endif } bool SystemTools::FileIsSymlink(const std::string& name) |