Bläddra i källkod

Borland: No S_IWGRP is available

Brad King 15 år sedan
förälder
incheckning
cae85c9f65
2 ändrade filer med 4 tillägg och 0 borttagningar
  1. 2 0
      Source/cmFileCommand.cxx
  2. 2 0
      Source/cmWriteFileCommand.cxx

+ 2 - 0
Source/cmFileCommand.cxx

@@ -191,6 +191,8 @@ bool cmFileCommand::HandleWriteCommand(std::vector<std::string> const& args,
     cmSystemTools::SetPermissions(fileName.c_str(),
 #if defined( _MSC_VER ) || defined( __MINGW32__ )
       mode | S_IWRITE
+#elif defined( __BORLANDC__ )
+      mode | S_IWUSR
 #else
       mode | S_IWUSR | S_IWGRP
 #endif

+ 2 - 0
Source/cmWriteFileCommand.cxx

@@ -62,6 +62,8 @@ bool cmWriteFileCommand
     cmSystemTools::SetPermissions(fileName.c_str(),
 #if defined( _MSC_VER ) || defined( __MINGW32__ )
       mode | S_IWRITE
+#elif defined( __BORLANDC__ )
+      mode | S_IWUSR
 #else
       mode | S_IWUSR | S_IWGRP
 #endif