I was too hasty, it's just the other way around.
Try to define __USE_MINGW_ANSI_STDIO to make automatically use of
__mingw_strtold instead of the strtold (msvcrt).



2018-07-01 15:03 GMT+02:00 Carl Kleffner <cmkleff...@gmail.com>:

>
> mingw-w64/mingw-w64-headers/crt/ChangeLog:
>
> 2014-03-03  Ray Donnelly mingw.andr...@gmail.com
>     * stdlib.h (strtod): Don't define it to __strtod if
>     __USE_MINGW_STRTOX is defined.
>
> mingw-w64-headers/crt/ChangeLog.2013:
>
> 2013-01-12  Jonathan Yong  <jo...@users.sourceforge.net>
>
>     * stdlib.h: Define __USE_MINGW_STRTOX if __USE_MINGW_ANSI_STDIO in use.
>     (strtod): Alias to __mingw_strtod if __USE_MINGW_STRTOX.
>     (strtof): Likewise to __mingw_strtof.
>
> This bug should only happen if either __USE_MINGW_ANSI_STDIO or
> __USE_MINGW_STRTOX is defined. However, I am not sure if this should be the
> desired behaviour.
>
> 2018-07-01 11:27 GMT+02:00 <sisyph...@optusnet.com.au>:
>
>> Hi,
>>
>> In relation to
>>
>> https://sourceforge.net/p/mingw-w64/bugs/711/
>> and
>> https://sourceforge.net/p/mingw-w64/bugs/725/
>>
>> I've just discovered that replacing the strtold() calls with calls to
>> __mingw_strtold() avoids the buggy behaviour.
>>
>> Why would that be so ?
>> Does this observation open the door to these bugs with strtold() soon
>> being fixed ?
>> Are there any downsides to my using __mingw_strtold() as a replacement
>> for strtold() ?
>>
>> I should add that I've tested this only on gcc version 8.1.0
>> (i686-posix-dwarf-rev0, Built by MinGW-W64 project) and gcc version 8.1.0
>> (x86_64-posix-seh-rev0, Built by MinGW-W64 project).
>> I haven't actually tested it on mingw-w64 ports of earlier versions of
>> gcc.
>>
>> Cheers,
>> Rob
>>
>> ------------------------------------------------------------
>> ------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> Mingw-w64-public mailing list
>> Mingw-w64-public@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>>
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to