* GCC 2.95 compatibility.

This commit is contained in:
Eelco Dolstra 2005-12-24 23:32:59 +00:00
parent 1d2460ee5d
commit 1440419b45
1 changed files with 1 additions and 1 deletions

View File

@ -301,7 +301,7 @@ static string addPrefix(const string & prefix, const string & s)
static string stripPrefix(const string & prefix, const string & s)
{
if (s.size() <= prefix.size() ||
s.compare(0, prefix.size(), prefix) != 0 ||
string(s, 0, prefix.size()) != prefix ||
s[prefix.size()] != 0)
throw Error(format("string `%1%' is missing prefix `%2%'")
% s % prefix);