Patch: jcf-path.c and filename case-insensitivity on Win32

Ranjit Mathew rmathew4lists@hotmail.com
Mon Mar 3 11:03:00 GMT 2003


> 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p1
Type: application/octet-stream
Size: 4174 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20030303/92de0801/attachment.obj>


More information about the Java-patches mailing list