diff options
Diffstat (limited to 'gcc/java/jcf.h')
| -rw-r--r-- | gcc/java/jcf.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/java/jcf.h b/gcc/java/jcf.h index c8e6aa7a602..96809748692 100644 --- a/gcc/java/jcf.h +++ b/gcc/java/jcf.h @@ -54,6 +54,15 @@ 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 + struct JCF; typedef int (*jcf_filbuf_t) PARAMS ((struct JCF*, int needed)); |

