[vorbis-dev] vorbis on playstation 2
Segher Boessenkool
segher at koffie.nl
Thu Feb 6 23:54:30 PST 2003
David Etherton wrote:
>>M_PI *used* to be defined to a single precision constant.
>
>
> There's an #ifndef M_PI in the vorbis headers that defines it as single
> precision but the problem is that the math.h is defining it double
> precision.
<math.h> is not allowed to define M_PI. But yes, I've seen
several C implementations that do this. Yuck.
Maybe we should use a
#define M_PIf (float) M_PI
and use M_PIf instead.
> I maintain a cross-platform game engine and I've found it useful to wrap
> nearly all of the C standard headers. Maybe "vorbis_math.h" instead of
> <math.h>?
Not my call. FWIW, I don't like the idea, but I see its
usefulness.
<p>Segher
<p>--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the Vorbis-dev
mailing list