From ae0b19f5f12d5a44189de636f79393680cf19167 Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:58:18 +0000 Subject: Restored GCC 2.95 compilability Author: jgg Date: 2001-05-29 05:09:44 GMT Restored GCC 2.95 compilability --- apt-pkg/contrib/strutl.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'apt-pkg/contrib/strutl.cc') diff --git a/apt-pkg/contrib/strutl.cc b/apt-pkg/contrib/strutl.cc index 60a57b5c7..e49794f6a 100644 --- a/apt-pkg/contrib/strutl.cc +++ b/apt-pkg/contrib/strutl.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: strutl.cc,v 1.42 2001/05/29 04:40:34 jgg Exp $ +// $Id: strutl.cc,v 1.43 2001/05/29 05:09:44 jgg Exp $ /* ###################################################################### String Util - Some useful string functions. @@ -440,6 +440,8 @@ int stringcmp(const char *A,const char *AEnd,const char *B,const char *BEnd) return -1; return 1; } + +#if __GNUC__ >= 3 int stringcmp(string::const_iterator A,string::const_iterator AEnd, const char *B,const char *BEnd) { @@ -474,6 +476,7 @@ int stringcmp(string::const_iterator A,string::const_iterator AEnd, return -1; return 1; } +#endif /*}}}*/ // stringcasecmp - Arbitary case insensitive string compare /*{{{*/ // --------------------------------------------------------------------- @@ -494,6 +497,7 @@ int stringcasecmp(const char *A,const char *AEnd,const char *B,const char *BEnd) return -1; return 1; } +#if __GNUC__ >= 3 int stringcasecmp(string::const_iterator A,string::const_iterator AEnd, const char *B,const char *BEnd) { @@ -528,6 +532,7 @@ int stringcasecmp(string::const_iterator A,string::const_iterator AEnd, return -1; return 1; } +#endif /*}}}*/ // LookupTag - Lookup the value of a tag in a taged string /*{{{*/ // --------------------------------------------------------------------- -- cgit v1.2.3