aboutsummaryrefslogtreecommitdiff
path: root/libiberty/filename_cmp.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@adacore.com>2007-05-03 23:39:35 +0000
committerJoel Brobecker <brobecke@gcc.gnu.org>2007-05-03 23:39:35 +0000
commit186c60abb204eb1f647cd0cee2161fe703f58875 (patch)
tree4587f778a15ca884252ff9bbd613b273a5c9344b /libiberty/filename_cmp.c
parent47010185b15f556ba172d42ac62a299f5905b818 (diff)
downloadgcc-186c60abb204eb1f647cd0cee2161fe703f58875.zip
gcc-186c60abb204eb1f647cd0cee2161fe703f58875.tar.gz
gcc-186c60abb204eb1f647cd0cee2161fe703f58875.tar.bz2
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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libiberty/filename_cmp.c b/libiberty/filename_cmp.c
index 59bb726..0a4d0d8 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 == '/')