summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2003-05-28 13:21:37 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2003-05-28 13:21:37 (GMT)
commit8cb6645ad8779c7066a9a31907004506b595aab2 (patch)
tree0fb33f0cf62d41c4532068d38b96600d2a10474a /Source/cmSystemTools.cxx
parent64db4e2cd8706ea91a8598145cff5d7607e3bfd2 (diff)
downloadCMake-8cb6645ad8779c7066a9a31907004506b595aab2.zip
CMake-8cb6645ad8779c7066a9a31907004506b595aab2.tar.gz
CMake-8cb6645ad8779c7066a9a31907004506b595aab2.tar.bz2
Remove some borland 6 warnings
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r--Source/cmSystemTools.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 218c87d..46bcabd 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -704,12 +704,12 @@ void cmSystemTools::ConvertToUnixSlashes(std::string& path)
pos++;
}
// Remove all // from the path just like most unix shells
+#ifndef _WIN32
int start_find = 0;
-
-#ifdef _WIN32
+#else
// However, on windows if the first characters are both slashes,
// then keep them that way, so that network paths can be handled.
- start_find = 1;
+ int start_find = 1;
#endif
while((pos = path.find("//", start_find)) != std::string::npos)