From 548e866f819455e730b5981cefed80dfb9c56033 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Mon, 22 Jun 2015 16:11:55 -0700 Subject: 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 --- binutils-2.25/bfd/peXXigen.c | 22 ---------------------- 1 file changed, 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) -- cgit v1.2.3