|
From: | Fred Kiefer |
Subject: | Re: Usage of rint() in gui |
Date: | Fri, 12 Apr 2002 01:50:00 +0200 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.0; de-DE; rv:0.9.4) Gecko/20011019 Netscape6/6.2 |
Adam Fedor wrote:
Fred Kiefer wrote:Or as this becomes more common now, we could move the replacementdefinition of rint() up into the config.h file itself. Any ideas on this solution?Done.
Sorry, perhaps my idea wasnt that good. I now did get a compile error, because of different difinitions of rint(). This is caused by config.h not being protrected againet multiple includes and also by math.h being included after config.h. To work around this I did exetent the definition of rint in config.h.bot to
#ifndef HAVE_RINT extern double floor(double a); static double rint(double a) { return (floor(a+0.5)); } #define HAVE_RINT #endifThis now works for me, but results still in a lot of compiler warnings as config.h is included into files where rint() is not used, so it is an unused variable.
Cheers Fred
[Prev in Thread] | Current Thread | [Next in Thread] |