[Ffmpeg-devel] lrintf test

Måns Rullgård mru
Wed Nov 15 01:45:38 CET 2006


The test for lrintf in configure looks rather more complicated than it
would need to be:

check_exec <<EOF && lrintf=yes || lrintf=no
#define _ISOC9X_SOURCE  1
#include <math.h>
int main( void ) { return (lrintf(3.999f) > 0)?0:1; }
EOF

Is there some reason this can't be a simpll check_func lrintf?  Are
there broken variants around that will link but return incorrect
values?

-- 
M?ns Rullg?rd
mru at inprovide.com




More information about the ffmpeg-devel mailing list