From 3dce14083fc35cc2b60906577cf797e0ae49f1b8 Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Thu, 3 Jul 2003 04:24:01 +0000 Subject: system.h: Include filenames.h. * system.h: Include filenames.h. (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define. (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined, define based on HAVE_DOS_BASED_FILE_SYSTEM. * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h * config/i386/xm-mingw32.h: Don't define HAVE_DOS_BASED_FILE_SYSTEM, DIR_SEPARATOR, or DIR_SEPARATOR_2. * doc/hostconfig.texi: Update to match. * cppfiles.c, gcc.c, gensupport.c, protoize.c, config/i386/cygwin.h: Use IS_ABSOLUTE_PATH throughout. * gcc.c (DIR_UP): Delete, unused. * protoize.c (IS_SAME_PATH): Define in terms of FILENAME_CMP. (is_abspath): Delete. java: * jcf-path.c: Don't default-define PATH_SEPARATOR nor DIR_SEPARATOR. Use FILENAME_CMP. * jcf-write.c: Don't default-define DIR_SEPARATOR. * jcf.h: Delete COMPARE_FILENAMES definition. From-SVN: r68863 --- gcc/java/jcf.h | 9 --------- 1 file changed, 9 deletions(-) (limited to 'gcc/java/jcf.h') diff --git a/gcc/java/jcf.h b/gcc/java/jcf.h index 962db12..9706567 100644 --- a/gcc/java/jcf.h +++ b/gcc/java/jcf.h @@ -54,15 +54,6 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */ #define JCF_USE_SCANDIR 0 #endif -/* On case-insensitive file systems, file name components must be - compared using "strcasecmp", if available, instead of "strcmp". - Assumes "config.h" has already been included. */ -#if defined (HAVE_DOS_BASED_FILE_SYSTEM) && defined (HAVE_STRCASECMP) -#define COMPARE_FILENAMES(X, Y) strcasecmp ((X), (Y)) -#else -#define COMPARE_FILENAMES(X, Y) strcmp ((X), (Y)) -#endif - /* On case-insensitive file systems, we need to ensure that a request to open a .java or .class file is honored only if the file to be opened is of the exact case we are asking for. In other words, we -- cgit v1.1