Hi, all
I attached the patch.

I put ifdef guard for compatibility with MSVC. 

default behaviour: same as MSVC
when defined _GNU_SOURCE: same as glibc(>2.01)

Yuta

________________________________________
差出人: Kuldeep Singh Dhaka <kuldeepdha...@gmail.com>
送信日時: 2016年5月23日 18:50
宛先: mingw-w64-public@lists.sourceforge.net
件名: [Mingw-w64-public] glibc isinf() behaviour

`man isinf`
>In glibc 2.01 and earlier, isinf() returns a nonzero value
> (actually: 1) if x is positive infinity or negative infinity.
> (This is all that C99 requires.)"

whereas: C: return non-zero values for infinite values
 (be it +Infinity or -Infinity)

Can we have similar behaviour for Mingw-w64?
I recompiled libreplot for MS Windows and got a runtime problem due to
code relying specifically on behaviour of glibc > 2.01.

current math.h: `#define isinf(x) (fpclassify(x) == FP_INFINITE)`

--
Kuldeep Singh Dhaka

------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to