diff options
author | Joel Brobecker <brobecker@adacore.com> | 2007-05-03 23:39:35 +0000 |
---|---|---|
committer | Joel Brobecker <brobecke@gcc.gnu.org> | 2007-05-03 23:39:35 +0000 |
commit | 186c60abb204eb1f647cd0cee2161fe703f58875 (patch) | |
tree | 4587f778a15ca884252ff9bbd613b273a5c9344b /libiberty/filename_cmp.c | |
parent | 47010185b15f556ba172d42ac62a299f5905b818 (diff) | |
download | gcc-186c60abb204eb1f647cd0cee2161fe703f58875.tar.gz |
filename_cmp.c: Replace include of ctype.h by include of safe-ctype.h.
* 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.
From-SVN: r124399
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 59bb726b90e..0a4d0d85091 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 == '/') |