Re: [BUILD] multi-platform/OS test needed

NAKATA Maho <[email protected]>
Newsgroups gmane.comp.openoffice.devel.porting
Organization private
Message-ID <[email protected]>
In Message-ID: <[email protected]> 
Eike Rathke <[email protected]> wrote:

Dear Eike,
thanks for your consideration for FreeBSD...

> Removing the inclusion of math.h might cause trouble on other platforms
> if they need it for finite() or other declarations. Things vary between
> platforms.

please do not code like that. isnan is C99, but not in C++ standard.
http://www.mail-archive.com/[email protected]/msg54889.html
So apparently
> Things vary between platforms.
holds.

> While people are at it, could someone running FreeBSD check whether
> removing also
> #if defined (FREEBSD)
> using namespace __gnu_cxx;  //for isnan #iz27753 for FreeBSD
> #endif
> 
> would break anything? Maybe the namespace is needed also for the

Congratulations, it doesn't break with
FreeBSD 5.3-RELEASE, gcc 3.4.1 (enum fix and visibility patch), 
OOo 1.9m102.
so you can remove this

thanks you very much!
-- NAKATA, Maho ([email protected])
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.