Forráskód Böngészése

ERR: And yet another set of constants for file permissions

Andy Cedilnik 22 éve
szülő
commit
f33c01b98a
1 módosított fájl, 3 hozzáadás és 1 törlés
  1. 3 1
      Source/cmFileCommand.cxx

+ 3 - 1
Source/cmFileCommand.cxx

@@ -344,8 +344,10 @@ bool cmFileCommand::HandleInstallCommand(std::vector<std::string> const& args)
     case cmTarget::EXECUTABLE:
 
       if ( !cmSystemTools::SetPermissions(destfile.c_str(), 
-#ifdef _MSC_VER
+#if defined( _MSC_VER )
           S_IREAD | S_IWRITE | S_IEXEC
+#elif defined( __BORLANDC__ )
+          S_IRUSR | S_IWUSR | S_IXUSR
 #else
           S_IRUSR | S_IWUSR | S_IXUSR | 
           S_IRGRP | S_IXGRP |