mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-04-19 08:36:16 +00:00
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:
parent
99cf467858
commit
1ced27e223
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user