[Ffmpeg-devel] roundf on solaris

Niki Waibel niki.waibel
Wed Nov 9 13:27:58 CET 2005


there is a problem when compiling ffmpeg on solaris.
solaris up to (incl) 9 does NOT have:
        roundf()

i work around that issue by using:
        echo "#define roundf(a) ((fmod(a,1)<0.5)?floor(a):ceil(a))" >> config.h
after i've run configure.

could you include a test in configure for roundf()?

niki





More information about the ffmpeg-devel mailing list