From: drepper Date: Sat, 23 Jan 1999 22:10:19 +0000 (+0000) Subject: Use _tolower instead of tolower if possible. X-Git-Tag: glibc-2_0_112~158 X-Git-Url: http://git.csclub.uwaterloo.ca/?p=kopensolaris-gnu%2Fglibc.git;a=commitdiff_plain;h=080452fef666e433a6935a71763635bc4ecf6461 Use _tolower instead of tolower if possible. --- diff --git a/argp/argp-help.c b/argp/argp-help.c index a3a1a12ef9..d78060d12c 100644 --- a/argp/argp-help.c +++ b/argp/argp-help.c @@ -1,5 +1,5 @@ /* Hierarchial argument parsing help output - Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc. + Copyright (C) 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc. This file is part of the GNU C Library. Written by Miles Bader . @@ -759,7 +759,11 @@ hol_entry_cmp (const struct hol_entry *entry1, { char first1 = short1 ? short1 : long1 ? *long1 : 0; char first2 = short2 ? short2 : long2 ? *long2 : 0; +#ifdef _tolower + int lower_cmp = _tolower (first1) - _tolower (first2); +#else int lower_cmp = tolower (first1) - tolower (first2); +#endif /* Compare ignoring case, except when the options are both the same letter, in which case lower-case always comes first. */ return lower_cmp ? lower_cmp : first2 - first1;