diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2013-05-16 19:44:21 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2013-05-16 19:45:47 -0700 |
commit | 77ec902ca70b4da4556ececcf7ef2024955b0e63 (patch) | |
tree | b60693b7cf64b7bb94a35d6a78a7f223e9865270 /fallback.h | |
parent | 7d9b0a00e4ec7c3d10bc08fb4ca4716aa31a0589 (diff) |
Fix for failing to weak link wcsncasecmp - binary dies on SnowLeopard
Diffstat (limited to 'fallback.h')
-rw-r--r-- | fallback.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -217,8 +217,10 @@ int wcwidth(wchar_t c); #if __APPLE__ && __DARWIN_C_LEVEL >= 200809L wchar_t *wcsdup_use_weak(const wchar_t *); int wcscasecmp_use_weak(const wchar_t *, const wchar_t *); +int wcsncasecmp_use_weak(const wchar_t *s1, const wchar_t *s2, size_t n); #define wcsdup(a) wcsdup_use_weak((a)) #define wcscasecmp(a, b) wcscasecmp_use_weak((a), (b)) +#define wcsncasecmp(a, b, c) wcsncasecmp_use_weak((a), (b), (c)) #else @@ -273,7 +275,7 @@ size_t wcslen(const wchar_t *in); fish and guaranteed to be a sane, english word. Using wcsncasecmp on a user-supplied string should be considered a bug. */ -int wcsncasecmp(const wchar_t *a, const wchar_t *b, int count); +int wcsncasecmp(const wchar_t *a, const wchar_t *b, size_t count); /** Returns a newly allocated wide character string wich is a copy of |