bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: signbit(), C++, and Solaris 10


From: Damian McGuckin
Subject: Re: signbit(), C++, and Solaris 10
Date: Sat, 23 Nov 2024 00:48:24 +1100 (AEDT)

On Fri, 22 Nov 2024, Bruno Haible wrote:

Damian McGuckin wrote:
Why does 'signbit()' have type 'bool' in the local 'math.h'?

Because that's the mandated return type in C++:
https://en.cppreference.com/w/cpp/numeric/math/signbit
https://en.cppreference.com/w/c/numeric/math/signbit

Silly me, I forgot C++ disagrees with the C standard.

So somewhere, is something in the build process pulling in the C header?

Thanks - Damian



reply via email to

[Prev in Thread] Current Thread [Next in Thread]