summaryrefslogtreecommitdiff
path: root/vmsfunctions.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2007-05-09 02:01:53 +0000
committerPaul Smith <psmith@gnu.org>2007-05-09 02:01:53 +0000
commitdc1e1f5e236e519cce00b7da5ef0bebb6d3511b7 (patch)
tree3404b1e3f513b67dd501f252d2aea327c06ca03b /vmsfunctions.c
parentba663628dd072ef0e318dabaff9fd52145626da7 (diff)
downloadmake-dc1e1f5e236e519cce00b7da5ef0bebb6d3511b7.tar.gz
Fix Savannah bug #19656: rationalize our use of case-insensitive string
comparison functions to always use POSIX strcasecmp(). For non-POSIX systems that use other functions (strcmpi or stricmp) use a macro to alias strcasecmp to those. If we can't find any of them (VMS, plus whatever UNIX doesn't have them) then define our own version in misc.c.
Diffstat (limited to 'vmsfunctions.c')
-rw-r--r--vmsfunctions.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/vmsfunctions.c b/vmsfunctions.c
index 589a7210..ed64af4e 100644
--- a/vmsfunctions.c
+++ b/vmsfunctions.c
@@ -257,15 +257,3 @@ cvt_time (unsigned long tval)
return (str);
}
-
-int
-strcmpi (const char *s1, const char *s2)
-{
- while (*s1 != '\0' && toupper(*s1) == toupper(*s2))
- {
- s1++;
- s2++;
- }
-
- return toupper(*(unsigned char *) s1) - toupper(*(unsigned char *) s2);
-}