blob: bda9f5d39c3e5f79718fb1ab30bd29f59a4e0a0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
OSX Lion has wcscasecmp, but is not GNU
--- configure.in
+++ configure.in
@@ -67,6 +67,7 @@
dnl Checks for library functions.
AC_CHECK_FUNCS(strstr)
AC_CHECK_FUNCS(strcasecmp)
+AC_CHECK_FUNCS(wcscasecmp)
dnl create testsuite
dnl AC_CONFIG_TESTDIR([tests])
--- src/html.c
+++ src/html.c
@@ -40,7 +40,7 @@
link_inline[DEF_STR_LEN]; /* Link of a HTML-Tag */
/* ------------------------------------------------ */
-#if defined(MULTIBYTE) && ! defined(__GNU_LIBRARY__)
+#if defined(MULTIBYTE) && ! defined(HAVE_WCSCASECMP)
#include <wchar.h>
static int wcscasecmp(const wchar_t *s1, const wchar_t *s2)
{
|