summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/strutl.cc
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:58:18 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:58:18 +0000
commitae0b19f5f12d5a44189de636f79393680cf19167 (patch)
tree36ff1f6db00bfeef84a559120810a176d68a1e5c /apt-pkg/contrib/strutl.cc
parentaebbb9d05fb99e26e18c17e7e02de5bee291a6d0 (diff)
Restored GCC 2.95 compilability
Author: jgg Date: 2001-05-29 05:09:44 GMT Restored GCC 2.95 compilability
Diffstat (limited to 'apt-pkg/contrib/strutl.cc')
-rw-r--r--apt-pkg/contrib/strutl.cc7
1 files changed, 6 insertions, 1 deletions
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 /*{{{*/
// ---------------------------------------------------------------------