From 31593e1b96c792abba3c5268d6423975aefa56b2 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 24 Feb 2015 17:01:23 +0000 Subject: Fixes compiling peXXigen under MAC OS/X where the wcsncasecmp function is not available. * configure.ac (AC_CHECK_HEADERS): Add wctype.h. * configure: Regenerate. * config.in: Regenerate. * peXXigen.c: Include wctype.h if HAVE_WCTYPE_H is defined. (u16_mbtowc): Use wint_t types if HAVE_WCTYPE_H is defined. (rsrc_cmp): Use towlower instead of wcsncasecmp if HAVE_WCTYPE_H is defined. --- bfd/configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bfd/configure') diff --git a/bfd/configure b/bfd/configure index 20b2e27..a328813 100755 --- a/bfd/configure +++ b/bfd/configure @@ -12988,7 +12988,7 @@ $as_echo "$bfd_cv_build_exeext" >&6; } fi -for ac_header in alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h wchar.h +for ac_header in alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h wchar.h wctype.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -- cgit v1.1