It now forces its argument to double before testing for infinity.
Part of source_os2emx.patch in issue 3868 Reviewed by Amaury Forgeot d'Arc
The patch also adds acosh, asinh, atanh, log1p and copysign to all platforms. Finally it fixes differences between platforms like different results or exceptions for edge cases. Have fun :)