OSDN Git Service

Darwin has case-insensitive filesystems
authorbrobecke <brobecke@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 1 Jul 2011 17:51:05 +0000 (17:51 +0000)
committerbrobecke <brobecke@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 1 Jul 2011 17:51:05 +0000 (17:51 +0000)
commitfd109ff585b20343601fa08c8b0bc45436305ec4
tree2101553adc801554eb75138475f104cfda9d278b
parentc87f3e505755ba95d5457255ed66071d331587aa
Darwin has case-insensitive filesystems

HFS+, the FS on Darwin, is case insensitive. So this patch adjusts
filename_cmp.c to ignore the casing when comparing filenames on Darwin.

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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175762 138bc75d-0d04-0410-961f-82ee72b054a4
include/ChangeLog
include/filenames.h
libiberty/ChangeLog
libiberty/filename_cmp.c