This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.

See attachment.

Attachment: p1
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]