bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

wcsncasecmp undefined up to Mac OS X 10.7


From: Stefan Schmidt
Subject: wcsncasecmp undefined up to Mac OS X 10.7
Date: Sun, 28 Dec 2014 18:05:41 +0100

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]