Hello,
I tried to compile binutils-2.25 to run on Mac OS X 10.4 and targeting 
Mingw-w64. However, I stumbled over the missing wcsncasecmp function in 
bfd/peXXigen.c.
As this function is first available starting from OS X 10.7, I tried to solve 
the problem using towlower and wcsncmp. While the attached patch (which was 
done against the current git HEAD) should handle this case and compiles 
successfully, I do not know how to enable a HAVE_WCTYPE_H test in the 
corresponding configure.

While I left the old code as an else to the "defined HAVE_WCTYPE_H", I think it 
it unnecessary since unlike wcsncasecmp, wcsncmp is part of the C standard 
library — at least if http://www.cplusplus.com/reference/cwchar/ is correct :-).

Looking forward to your comments :-)
Stefan

Attachment: wcsncasecmp_peXXigen.patch
Description: Binary data

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to