Re: missing isinf declaration on solaris - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: missing isinf declaration on solaris
Date
Msg-id 20140924203919.GT5311@eldon.alvh.no-ip.org
Whole thread Raw
In response to Re: missing isinf declaration on solaris  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: missing isinf declaration on solaris
List pgsql-hackers
Tom Lane wrote:
> Peter Eisentraut <peter_e@gmx.net> writes:
> > On 9/24/14 9:21 AM, Tom Lane wrote:
> >> Agreed, but what about non-GCC compilers?
> 
> > Stick AC_PROG_CC_C99 into configure.in.
> 
> I think that's a bad idea, unless you mean to do it only on Solaris.
> If we do that unconditionally, we will pretty much stop getting any
> warnings about C99-isms on modern platforms.  I am not aware that
> there has been any agreement to move our portability goalposts up
> to C99.

AFAIK we cannot move all the way to C99, because MSVC doesn't support
it.  Presumably we're okay on the isinf() front because MSVC inherited
it from somewhere else (it's on BSD 4.3 according to my Linux manpage),
but other things are known not to work.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services



pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Immediate standby promotion
Next
From: Tom Lane
Date:
Subject: Re: interval typmodout is broken