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

2024-11-22 Thread Damian McGuckin
On Thu, 21 Nov 2024, G. Branden Robinson wrote: In file included from ./src/include/driver.h:25:0, from src/devices/grodvi/dvi.cpp:25: ./lib/math.h: In function ?bool signbit(float)?: ./lib/math.h:3281:1: error: ?bool signbit(float)? conflicts with a previous declar

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

2024-11-22 Thread Damian McGuckin
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/