summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKasumi Hanazuki <kasumi@rollingapple.net>2016-01-24 05:52:10 (GMT)
committerKasumi Hanazuki <kasumi@rollingapple.net>2016-01-24 06:09:31 (GMT)
commit1ced27e223caec88fa9fdaf1ba0427000117e77f (patch)
treeef187d52949cb557aef39ec9f80bdf4ff0a5f90a
parent99cf46785853369d2f6fd28702f98459af1646c7 (diff)
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>
-rw-r--r--patches/binutils/2.25.1/350-Darwin-Two-fixes-from-Android-NDK-PTHREAD_ONCE_INIT-wcsncasecmp.patch2
1 files changed, 1 insertions, 1 deletions
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 871d239..6168b31 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)