Re: rint() replacement
От | Bruce Momjian |
---|---|
Тема | Re: rint() replacement |
Дата | |
Msg-id | 200305100207.h4A27uS13956@candle.pha.pa.us обсуждение исходный текст |
Ответ на | Re: rint() replacement ("Andrew Dunstan" <andrew@dunslane.net>) |
Список | 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 по дате отправления: