Fix macOS Xcode build

React to Solaris fixes (0019c12af3) by hiding some more
functions from macOS. The Xcode build uses special weak-linking
magic.
This commit is contained in:
ridiculousfish
2016-12-10 20:48:07 -08:00
parent 90f7d4b081
commit eb3ed2680b
3 changed files with 19 additions and 2 deletions

View File

@@ -156,7 +156,7 @@ int wcsncasecmp(const wchar_t *a, const wchar_t *b, size_t n) {
return wcsncasecmp_fallback(a, b, n);
}
#endif // __DARWIN_C_LEVEL >= 200809L
#endif // __APPLE__
#else // __APPLE__
/// These functions are missing from Solaris 10
#ifndef HAVE_WCSDUP
@@ -170,6 +170,7 @@ int wcsncasecmp(const wchar_t *a, const wchar_t *b, size_t n) {
return wcsncasecmp_fallback(a, b, n);
}
#endif
#endif
#ifndef HAVE_WCSNDUP
wchar_t *wcsndup(const wchar_t *in, size_t c) {