diff --git a/include/boost/regex/config/cstring.hpp b/include/boost/regex/config/cstring.hpp index 316f0b8c..dcc480d7 100644 --- a/include/boost/regex/config/cstring.hpp +++ b/include/boost/regex/config/cstring.hpp @@ -25,6 +25,7 @@ #include #include +#ifndef __sgi #ifdef __KCC #include #endif @@ -226,4 +227,6 @@ using ::toupper; } // namespace std +#endif // __sgi + #endif diff --git a/include/boost/regex/v4/perl_matcher_common.hpp b/include/boost/regex/v4/perl_matcher_common.hpp index e13a4a14..69f77c21 100644 --- a/include/boost/regex/v4/perl_matcher_common.hpp +++ b/include/boost/regex/v4/perl_matcher_common.hpp @@ -736,7 +736,6 @@ bool perl_matcher::find_restart_lit int len = info->len; const char_type* x = info->pstr; int j = 0; - bool icase = re.flags() & regex_constants::icase; while (position != last) { while((j > -1) && (x[j] != traits_inst.translate(*position, icase)))