I wrote:
> The new PI2 #defines in util.h (cvs) should be encapsulated by
> #ifndef PI2 ... #endif. With linux I get warnings

> util.h:38: warning: `PI2' redefined
> /usr/include/math.h:384: warning: this is the location of the previous
> definition

Now, I see that PI2 in math.h on my box has the value of 2*pi.
( the line in math.h reads #define PI2  (M_PI + M_PI) )

Thus #ifndef ... #endif does not help.

Perhaps

#ifdef PI2
#undef PI2
#endif

would be more appropriate?

Greetings, Alfred

-- 
Sent through Global Message Exchange - http://www.gmx.net

--
MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )

Reply via email to