Re: rint() replacement - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: rint() replacement
Date
Msg-id 200305100207.h4A27uS13956@candle.pha.pa.us
Whole thread Raw
In response to Re: rint() replacement  ("Andrew Dunstan" <andrew@dunslane.net>)
List pgsql-hackers
Andrew Dunstan wrote:
> 
> speaking of rint(), I just got this on Linux on a clean get from CVS:
> 
> gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -fpic -I../../../.
> ./src/interfaces/ecpg/include -I../../../../src/include/utils -I../../../../
> src/include   -c -o dt_common.o dt_common.c
> dt_common.c: In function `dt2time':
> dt_common.c:1271: warning: implicit declaration of function `rint'
> 
> which I guess is kinda undesirable...

OK, fixed.  I added '#include <math.h>'.

However, this illustrates another problem.  dt_common and other ecpg
files test for c.h defines but there is no #include of c.h or
postgres.h, so they never get triggered.  That needs to be fixed.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 



pgsql-hackers by date:

Previous
From: "Andrew Dunstan"
Date:
Subject: Dev FAQ emacs settings
Next
From: Bruce Momjian
Date:
Subject: Re: rint() replacement