summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2015-06-22 23:11:55 (GMT)
committerDan Albert <danalbert@google.com>2015-06-22 23:11:55 (GMT)
commit548e866f819455e730b5981cefed80dfb9c56033 (patch)
treed7e578e61251a8cb91fe983a2d8f1360cf25bc23
parent8ce34817e52c4814cbd5a028bbc808a5c1a559b0 (diff)
downloadtoolchain_binutils-548e866f819455e730b5981cefed80dfb9c56033.zip
toolchain_binutils-548e866f819455e730b5981cefed80dfb9c56033.tar.gz
toolchain_binutils-548e866f819455e730b5981cefed80dfb9c56033.tar.bz2
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
-rw-r--r--binutils-2.25/bfd/peXXigen.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/binutils-2.25/bfd/peXXigen.c b/binutils-2.25/bfd/peXXigen.c
index 7a98306..13e39e4 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)