From 1786a7cdc42ca091b692105e44386d4181b28eb5 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sat, 25 Jul 2015 13:02:58 -0700 Subject: Use the address-of operator when checking for weak symbols This fixes a warning with gcc on OS X --- src/fallback.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/fallback.cpp') diff --git a/src/fallback.cpp b/src/fallback.cpp index 44019814..0f53e1a8 100644 --- a/src/fallback.cpp +++ b/src/fallback.cpp @@ -861,21 +861,21 @@ static int wcsncasecmp_fallback(const wchar_t *a, const wchar_t *b, size_t count /* Note parens avoid the macro expansion */ wchar_t *wcsdup_use_weak(const wchar_t *a) { - if (wcsdup != NULL) + if (&wcsdup != NULL) return (wcsdup)(a); return wcsdup_fallback(a); } int wcscasecmp_use_weak(const wchar_t *a, const wchar_t *b) { - if (wcscasecmp != NULL) + if (&wcscasecmp != NULL) return (wcscasecmp)(a, b); return wcscasecmp_fallback(a, b); } int wcsncasecmp_use_weak(const wchar_t *s1, const wchar_t *s2, size_t n) { - if (wcsncasecmp != NULL) + if (&wcsncasecmp != NULL) return (wcsncasecmp)(s1, s2, n); return wcsncasecmp_fallback(s1, s2, n); } -- cgit v1.2.3