[PATCH] bfd: Define func prototype for old mingw

Luis Machado luis.machado@arm.com
Tue Aug 16 17:09:43 GMT 2022


On 8/16/22 15:18, Nick Clifton wrote:
> Hi Torbjörn,
> 
>> diff --git a/bfd/bfdio.c b/bfd/bfdio.c
>> index a7c7d5bd363..59f79203b88 100644
>> --- a/bfd/bfdio.c
>> +++ b/bfd/bfdio.c
>> @@ -29,6 +29,11 @@
>>   #if defined (_WIN32)
>>   #include <windows.h>
>>   #include <locale.h>
>> +
>> +#if defined(__MINGW64_VERSION_MAJOR) && __MINGW64_VERSION_MAJOR < 9
>> +/* This prototype was added to locale.h in version 9.0 of MinaGW-w64.  */
>> +_CRTIMP unsigned int __cdecl ___lc_codepage_func(void);
>> +#endif
>>   #endif
>>   #ifndef S_IXUSR
> 
> Approved - please apply.
> 
> Cheers
>    Nick
> 

Pushed on Torbjörn's behalf.

Thanks for the patch.


More information about the Binutils mailing list