Skip to content

Commit

Permalink
Merge pull request #326 from hanazuki/binutils-patch-for-newer-osx
Browse files Browse the repository at this point in the history
patches/binutils: wcsncasecmp is provided by OSX >= 10.7
  • Loading branch information
mingwandroid committed Jan 24, 2016
2 parents 99cf467 + 1ced27e commit b8ca5bd
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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)
Expand Down

0 comments on commit b8ca5bd

Please sign in to comment.