[Ffmpeg-devel] Re: mathematics.c kills compilation on Mac Os X Tiger
carboncopy public
carboncopy.public
Tue Dec 20 08:35:46 CET 2005
Thanks, that works.
On 12/19/05, Laine Lee <llee at lonestar.utsa.edu> wrote:
> >I have been trying to compile ffmpeg latest cvs since sometime ago. But failed.
>
> I don't think the lrintf definition is pertinent for OS X. I was able to
> successfully build ffmpeg today by simply removing the lrintf definition in
> the common.h file.
>
> I changed
>
> #ifndef HAVE_LRINTF
> /* XXX: add ISOC specific test to avoid specific BSD testing. */
> /* better than nothing implementation. */
> /* btw, rintf() is existing on fbsd too -- alex */
> static always_inline long int lrintf(float x)
> {
> #ifdef CONFIG_WIN32
> # ifdef ARCH_X86
> int32_t i;
> asm volatile(
> "fistpl %0\n\t"
> : "=m" (i) : "t" (x) : "st"
> );
> return i;
> # else
> /* XXX: incorrect, but make it compile */
> return (int)(x + (x < 0 ? -0.5 : 0.5));
> # endif /* ARCH_X86 */
> #else
> return (int)(rint(x));
> #endif /* CONFIG_WIN32 */
> }
> #else
> #ifndef _ISOC9X_SOURCE
> #define _ISOC9X_SOURCE
> #endif
> #include <math.h>
> #endif /* HAVE_LRINTF */
>
> to
>
> #ifndef _ISOC9X_SOURCE
> #define _ISOC9X_SOURCE
> #endif
> #include <math.h>
>
> --
> Laine Lee
> Visit the Mac Shack at http://moss.utsa.edu
> My Homepage: http://lonestar.utsa.edu/llee
>
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/ffmpeg-devel
>
More information about the ffmpeg-devel
mailing list