This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch: jcf-path.c and filename case-insensitivity on Win32
Ranjit Mathew writes:
>
> + /* 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
> +
Prefer COMPARE_FILENAMES(X, Y)
Otherwise OK.
Andrew.