From e56104509d41fde9a8b4e1d5bbf2eed88796b195 Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Tue, 7 Oct 2003 20:06:37 +0000 Subject: errors.c: Don't include coretypes.h or tm.h. * errors.c: Don't include coretypes.h or tm.h. (trim_filename): Use IS_DIR_SEPARATOR. * Makefile.in: Update dependencies of errors.o and $(BUILD_PREFIX_1)errors.o. From-SVN: r72200 --- gcc/errors.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'gcc/errors.c') diff --git a/gcc/errors.c b/gcc/errors.c index 6cbc29c47e3..09504d39d86 100644 --- a/gcc/errors.c +++ b/gcc/errors.c @@ -25,8 +25,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include "config.h" #include "system.h" -#include "coretypes.h" -#include "tm.h" #include "errors.h" /* Set this to argv[0] at the beginning of main. */ @@ -116,11 +114,7 @@ trim_filename (const char *name) p++, q++; /* Now go backwards until the previous directory separator. */ - while (p > name && p[-1] != DIR_SEPARATOR -#ifdef DIR_SEPARATOR_2 - && p[-1] != DIR_SEPARATOR_2 -#endif - ) + while (p > name && !IS_DIR_SEPARATOR (p[-1])) p--; return p; -- cgit v1.2.1