From b2f845feee3fcff045affb501935f64cbbbdafd1 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Wed, 11 Sep 2002 14:08:39 -0400 Subject: Function strcasecmp is not portable --- Source/cmCacheManager.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/cmCacheManager.cxx b/Source/cmCacheManager.cxx index 64a2edc..2b62fe2 100644 --- a/Source/cmCacheManager.cxx +++ b/Source/cmCacheManager.cxx @@ -611,7 +611,7 @@ void cmCacheManager::CacheIterator::SetValue(const char* value) const char* cmCacheManager::CacheIterator::GetProperty(const char* property) const { - if ( !strcasecmp(property, "TYPE") || !strcasecmp(property, "VALUE") ) + if ( !strcmp(property, "TYPE") || !strcmp(property, "VALUE") ) { cmSystemTools::Error("Property \"", property, "\" cannot be accessed through the GetProperty()"); @@ -629,7 +629,7 @@ const char* cmCacheManager::CacheIterator::GetProperty(const char* property) con void cmCacheManager::CacheIterator::SetProperty(const char* p, const char* v) { - if ( !strcasecmp(p, "TYPE") || !strcasecmp(p, "VALUE") ) + if ( !strcmp(p, "TYPE") || !strcmp(p, "VALUE") ) { cmSystemTools::Error("Property \"", p, "\" cannot be accessed through the SetProperty()"); @@ -641,7 +641,7 @@ void cmCacheManager::CacheIterator::SetProperty(const char* p, const char* v) bool cmCacheManager::CacheIterator::GetPropertyAsBool(const char* property) const { - if ( !strcasecmp(property, "TYPE") || !strcasecmp(property, "VALUE") ) + if ( !strcmp(property, "TYPE") || !strcmp(property, "VALUE") ) { cmSystemTools::Error("Property \"", property, "\" cannot be accessed through the GetPropertyAsBool()"); @@ -660,7 +660,7 @@ bool cmCacheManager::CacheIterator::GetPropertyAsBool(const char* property) cons void cmCacheManager::CacheIterator::SetProperty(const char* p, bool v) { - if ( !strcasecmp(p, "TYPE") || !strcasecmp(p, "VALUE") ) + if ( !strcmp(p, "TYPE") || !strcmp(p, "VALUE") ) { cmSystemTools::Error("Property \"", p, "\" cannot be accessed through the SetProperty()"); -- cgit v0.12