diff options
author | Joel Brobecker <brobecker@gnat.com> | 2007-05-03 23:40:11 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2007-05-03 23:40:11 +0000 |
commit | 4fb012671f836254b0ea4069f4de784398ed2fe8 (patch) | |
tree | 7adb228d59b78e373c80fbaa791b98c6964e31e7 /libiberty/filename_cmp.c | |
parent | af3c64dde340fd5e465befdb1a7143e4ed78af3e (diff) | |
download | binutils-redhat-4fb012671f836254b0ea4069f4de784398ed2fe8.tar.gz |
* filename_cmp.c: Replace include of ctype.h by include of
safe-ctype.h.
(filename_cmp): Use TOLOWER instead of tolower for conversions
that are locale-independent.
* Makefile.in (filename_cmp.o): Add dependency on safe-ctype.h.
Diffstat (limited to 'libiberty/filename_cmp.c')
-rw-r--r-- | libiberty/filename_cmp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libiberty/filename_cmp.c b/libiberty/filename_cmp.c index 59bb726b90..0a4d0d8509 100644 --- a/libiberty/filename_cmp.c +++ b/libiberty/filename_cmp.c @@ -24,8 +24,8 @@ #include <string.h> #endif -#include <ctype.h> #include "filenames.h" +#include "safe-ctype.h" /* @@ -55,8 +55,8 @@ filename_cmp (const char *s1, const char *s2) #else for (;;) { - int c1 = tolower (*s1); - int c2 = tolower (*s2); + int c1 = TOLOWER (*s1); + int c2 = TOLOWER (*s2); /* On DOS-based file systems, the '/' and the '\' are equivalent. */ if (c1 == '/') |