[FFmpeg-devel] [PATCH] Fix compilation on OpenBSD
Reimar Döffinger
Reimar.Doeffinger
Tue Nov 18 12:19:44 CET 2008
On Tue, Nov 18, 2008 at 01:38:45PM +0300, Andrew Savchenko wrote:
> > If your system headers only
> > define one of them, it is these which should be fixed, not
> > FFmpeg.
>
> Are you really, really sure in this? Cant you, please, be so kind
> to point me where POSIX and only POSIX stands for INFINITY *must*
> be defined?
C99 standard, section F.2.1
> > 3. Aside from the above, this is the wrong place to add a
> > missing definition of INFINITY.
>
> Why? Have you a better idea? I will be glad to hear it.
libavutil/mathematics.h is where that other kind of stuff is.
And I always thought that the generic fallback define for INFINITY would
be (1.0f/0.0f), hoping the compiler would replace it at compile time.
The generic glibc code for it is really ugly and not exactly portable...
Greetings,
Reimar D?ffinger
More information about the ffmpeg-devel
mailing list