From: srn Date: Wed, 1 Jul 2009 06:31:19 +0000 (+0000) Subject: Changed WNT32 defines to WIN32 X-Git-Tag: V5_1_3rc1~103 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f4f8696d46f574fc37fb02072147f5b686121f55;p=modules%2Fkernel.git Changed WNT32 defines to WIN32 --- diff --git a/src/SALOMEDSImpl/SALOMEDSImpl_StudyManager.cxx b/src/SALOMEDSImpl/SALOMEDSImpl_StudyManager.cxx index 7e6e48c68..51a3f5189 100644 --- a/src/SALOMEDSImpl/SALOMEDSImpl_StudyManager.cxx +++ b/src/SALOMEDSImpl/SALOMEDSImpl_StudyManager.cxx @@ -748,7 +748,7 @@ bool SALOMEDSImpl_StudyManager::Impl_SaveAs(const string& aStudyUrl, string aTmpFile = aTmpFileDir +"files"; string aStudyTmpDir = SALOMEDSImpl_Tool::GetDirFromPath(aUrl); -#ifdef WNT32 +#ifdef WIN32 aCmd = "dir /B \"" + aStudyTmpDir +"\" > " + aTmpFile; #else aCmd ="ls -1 \"" + aStudyTmpDir +"\" > " + aTmpFile; @@ -763,7 +763,7 @@ bool SALOMEDSImpl_StudyManager::Impl_SaveAs(const string& aStudyUrl, if((fgets(buffer, 2046, fp)) == NULL) break; size_t aLen = strlen(buffer); if(buffer[aLen-1] == '\n') buffer[aLen-1] = char(0); -#ifdef WNT32 +#ifdef WIN32 aCmd = "move /Y \"" + aStudyTmpDir + string(buffer) + "\" \"" + SALOMEDSImpl_Tool::GetDirFromPath(aStudyUrl) +"\""; #else aCmd = "mv -f \"" + aStudyTmpDir + string(buffer) + "\" \"" + SALOMEDSImpl_Tool::GetDirFromPath(aStudyUrl)+"\"";