summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorWill Schroeder <will.schroeder@kitware.com>2001-05-17 19:48:32 (GMT)
committerWill Schroeder <will.schroeder@kitware.com>2001-05-17 19:48:32 (GMT)
commitf9a36a6ff9b00a6dcecc66e681f4a9ec48eb8c5c (patch)
tree697adeed1907f8e9ca57b04ae56b547bc787647d /Source
parent43fb9a11b57e5ed9325cd707df933525fc5ef6b2 (diff)
downloadCMake-f9a36a6ff9b00a6dcecc66e681f4a9ec48eb8c5c.zip
CMake-f9a36a6ff9b00a6dcecc66e681f4a9ec48eb8c5c.tar.gz
CMake-f9a36a6ff9b00a6dcecc66e681f4a9ec48eb8c5c.tar.bz2
ERR:Bad #ifdef's
Diffstat (limited to 'Source')
-rw-r--r--Source/cmSystemTools.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 8a0bacf..447da7c 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -176,7 +176,7 @@ void cmSystemTools::ReplaceString(std::string& source,
}
}
-#ifdef _WIN32
+#if defined(_WIN32) && !defined(__CYGWIN__)
// Get the data of key value.
// Example :
@@ -255,7 +255,7 @@ bool ReadAValue(std::string &res, const char *key)
// write the result into source.
void cmSystemTools::ExpandRegistryValues(std::string& source)
{
-#if _WIN32
+#if defined(_WIN32) && !defined(__CYGWIN__)
cmRegularExpression regEntry("\\[(HKEY[A-Za-z0-9_~\\:\\-\\(\\)\\.]*)\\]");
// check for black line or comment