[PATCH 3/9] msvcr120: Remove precompiler check for asinh.

Alex Henrie alexhenrie24 at gmail.com
Tue Jul 11 00:26:16 CDT 2017


2017-07-10 11:41 GMT-06:00 Alex Henrie <alexhenrie24 at gmail.com>:
> 2017-07-10 5:20 GMT-06:00 Piotr Caban <piotr.caban at gmail.com>:
>> On 07/10/17 06:55, Alex Henrie wrote:
>>>
>>> asinh is part of C89, so it is guaranteed to be present.
>>
>> Are you sure about it? As far as I know it's part of C99. The manual for
>> asinh looks strange (it says that it conforms to C89 and gives test macro
>> that checks for never standards).
>
> I just looked, and I don't see it either. I also tried compiling a
> small program with asinh, and it would not compile with `gcc
> -std=c89`. So I think the man page must be mistaken.

Okay, I still think the man page is wrong, but I was forgetting the
-lm switch. `gcc -std=c89 -lm` will happily compile programs with
asinh, acosh, and atanh. However, I found evidence that relatively
recent MS compilers won't:
https://stackoverflow.com/questions/15539116/atanh-arc-hyperbolic-tangent-function-missing-in-ms-visual-c
https://mail.kde.org/pipermail/calligra-devel/2012-December/007686.html

I'll submit new patches to add acosh and atanh with precompiler
checks, preferably after the other patches in this series are
approved.

-Alex



More information about the wine-devel mailing list