From 1ced27e223caec88fa9fdaf1ba0427000117e77f Mon Sep 17 00:00:00 2001 From: Kasumi Hanazuki Date: Sun, 24 Jan 2016 14:52:10 +0900 Subject: [PATCH] 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 --- ...o-fixes-from-Android-NDK-PTHREAD_ONCE_INIT-wcsncasecmp.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/binutils/2.25.1/350-Darwin-Two-fixes-from-Android-NDK-PTHREAD_ONCE_INIT-wcsncasecmp.patch b/patches/binutils/2.25.1/350-Darwin-Two-fixes-from-Android-NDK-PTHREAD_ONCE_INIT-wcsncasecmp.patch index 871d239b..6168b31e 100644 --- a/patches/binutils/2.25.1/350-Darwin-Two-fixes-from-Android-NDK-PTHREAD_ONCE_INIT-wcsncasecmp.patch +++ b/patches/binutils/2.25.1/350-Darwin-Two-fixes-from-Android-NDK-PTHREAD_ONCE_INIT-wcsncasecmp.patch @@ -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)