diff options
author | Dan Albert <danalbert@google.com> | 2015-06-22 16:11:55 -0700 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2015-06-22 16:11:55 -0700 |
commit | 548e866f819455e730b5981cefed80dfb9c56033 (patch) | |
tree | d7e578e61251a8cb91fe983a2d8f1360cf25bc23 /binutils-2.25 | |
parent | 8ce34817e52c4814cbd5a028bbc808a5c1a559b0 (diff) | |
download | toolchain_binutils-548e866f819455e730b5981cefed80dfb9c56033.tar.gz toolchain_binutils-548e866f819455e730b5981cefed80dfb9c56033.tar.bz2 toolchain_binutils-548e866f819455e730b5981cefed80dfb9c56033.zip |
Apple has had wcsncasecmp since 10.7.
AFAICT this was an Android hack. I don't see it anywhere in the
history for upstream. Just remove it.
Bug: http://b/21534147
Change-Id: I7c69f543a80a0e4805fbea2934eaec052544d6c7
Diffstat (limited to 'binutils-2.25')
-rw-r--r-- | binutils-2.25/bfd/peXXigen.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/binutils-2.25/bfd/peXXigen.c b/binutils-2.25/bfd/peXXigen.c index 7a983066..13e39e48 100644 --- a/binutils-2.25/bfd/peXXigen.c +++ b/binutils-2.25/bfd/peXXigen.c @@ -3522,28 +3522,6 @@ u16_mbtouc (wchar_t * puc, const unsigned short * s, unsigned int n) } #endif /* HAVE_WCHAR_H and not Cygwin/Mingw */ -#ifdef __APPLE__ -/* wcsncasecmp isn't always defined in Mac SDK */ -static int -wcsncasecmp(const wchar_t *s1, const wchar_t *s2, size_t n) -{ - wchar_t c1, c2; - - if (n == 0) - return (0); - for (; *s1; s1++, s2++) - { - c1 = towlower(*s1); - c2 = towlower(*s2); - if (c1 != c2) - return ((int)c1 - c2); - if (--n == 0) - return (0); - } - return (-*s2); -} -#endif - /* Perform a comparison of two entries. */ static signed int rsrc_cmp (bfd_boolean is_name, rsrc_entry * a, rsrc_entry * b) |