Pārlūkot izejas kodu

add ifdef for windows function

Bill Hoffman 24 gadi atpakaļ
vecāks
revīzija
59714406cc
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      Source/cmaketest.cxx

+ 2 - 0
Source/cmaketest.cxx

@@ -149,6 +149,7 @@ int main (int argc, char *argv[])
   // MSDEV 7.0 .NET
   // MSDEV 7.0 .NET
   else if (lowerCaseCommand.find("devenv") != std::string::npos)
   else if (lowerCaseCommand.find("devenv") != std::string::npos)
     {
     {
+#if defined(_WIN32) && !defined(__CYGWIN__)      
     if(makeCommand.find(' ') != std::string::npos)
     if(makeCommand.find(' ') != std::string::npos)
       {
       {
       char *buffer = new char[makeCommand.size()+1];
       char *buffer = new char[makeCommand.size()+1];
@@ -159,6 +160,7 @@ int main (int argc, char *argv[])
         }
         }
       delete [] buffer;\
       delete [] buffer;\
       }
       }
+#endif
     makeCommand += " ";
     makeCommand += " ";
     makeCommand += projectName;
     makeCommand += projectName;
     makeCommand += ".sln /rebuild Debug /project ALL_BUILD";
     makeCommand += ".sln /rebuild Debug /project ALL_BUILD";