]> sourceware.org Git - newlib-cygwin.git/commitdiff
[libiberty/filename_cmp] Darwin has case-insensitive filesystems
authorJoel Brobecker <brobecker@adacore.com>
Fri, 1 Jul 2011 18:24:38 +0000 (18:24 +0000)
committerJoel Brobecker <brobecker@adacore.com>
Fri, 1 Jul 2011 18:24:38 +0000 (18:24 +0000)
include/ChangeLog:

        * filenames.h (HAVE_CASE_INSENSITIVE_FILE_SYSTEM): Define
        on Darwin, as well as on the systems that use a DOS-like
        filesystem.

libiberty/ChangeLog:

        * filename_cmp.c (filename_cmp, filename_ncmp): Add handling of
        HAVE_CASE_INSENSITIVE_FILE_SYSTEM.

include/ChangeLog
include/filenames.h

index c99733eb936ddc5dc6b77f7f967058ed8c85e330..c80aeb8a58fa17941f3882b47b34fa9a38febce4 100644 (file)
@@ -1,3 +1,9 @@
+2011-07-01  Joel Brobecker  <brobecker@adacore.com>
+
+       * filenames.h (HAVE_CASE_INSENSITIVE_FILE_SYSTEM): Define
+       on Darwin, as well as on the systems that use a DOS-like
+       filesystem.
+
 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
 
        PR debug/47858
index d4955df661cf4f965a4e22806eeb350acccc4a79..75ec3302d1d0a9764c86efaf2c25fd69c0708c6a 100644 (file)
@@ -34,10 +34,18 @@ extern "C" {
 #  ifndef HAVE_DOS_BASED_FILE_SYSTEM
 #    define HAVE_DOS_BASED_FILE_SYSTEM 1
 #  endif
+#  ifndef HAVE_CASE_INSENSITIVE_FILE_SYSTEM
+#    define HAVE_CASE_INSENSITIVE_FILE_SYSTEM 1
+#  endif
 #  define HAS_DRIVE_SPEC(f) HAS_DOS_DRIVE_SPEC (f)
 #  define IS_DIR_SEPARATOR(c) IS_DOS_DIR_SEPARATOR (c)
 #  define IS_ABSOLUTE_PATH(f) IS_DOS_ABSOLUTE_PATH (f)
 #else /* not DOSish */
+#  if defined(__APPLE__)
+#    ifndef HAVE_CASE_INSENSITIVE_FILE_SYSTEM
+#      define HAVE_CASE_INSENSITIVE_FILE_SYSTEM 1
+#    endif
+#  endif /* __APPLE__ */
 #  define HAS_DRIVE_SPEC(f) (0)
 #  define IS_DIR_SEPARATOR(c) IS_UNIX_DIR_SEPARATOR (c)
 #  define IS_ABSOLUTE_PATH(f) IS_UNIX_ABSOLUTE_PATH (f)
This page took 0.031467 seconds and 5 git commands to generate.