patches/binutils: wcsncasecmp is provided by OSX >= 10.7

OSX SDK has a declaration for `wcsncasecmp` since 10.7, which conflicts with
the definition provided by the patch for binutils.

Signed-off-by: Kasumi Fukuda <kasumi@rollingapple.net>
This commit is contained in:
Kasumi Hanazuki 2016-01-24 14:52:10 +09:00
parent 99cf467858
commit 1ced27e223

View File

@ -21,7 +21,7 @@ index 13e39e4..7a98306 100644
}
#endif /* HAVE_WCHAR_H and not Cygwin/Mingw */
+#ifdef __APPLE__
+#if defined __APPLE__ && __DARWIN_C_LEVEL < 200809L
+/* wcsncasecmp isn't always defined in Mac SDK */
+static int
+wcsncasecmp(const wchar_t *s1, const wchar_t *s2, size_t n)