# HG changeset patch # User bellard # Date 1035931101 0 # Node ID 8a5b70c68fbd44f6e4b7d4c01ec8a6e0e0767e57 # Parent 55add0e7eafb4c51811cbb7016375e6e407ae0d8 added lrintf for non ISOC libcs (fixme: find a better test) diff -r 55add0e7eafb -r 8a5b70c68fbd dsputil.h --- a/dsputil.h Tue Oct 29 22:27:30 2002 +0000 +++ b/dsputil.h Tue Oct 29 22:38:21 2002 +0000 @@ -269,4 +269,13 @@ const FFTSample *input, FFTSample *tmp); void ff_mdct_end(MDCTContext *s); +#if defined(__FreeBSD__) || (__bsdi__) +/* XXX: add ISOC specific test to avoid specific BSD testing. */ +/* better than nothing implementation. */ +static inline long int lrintf(float x) +{ + return (int)(rint(x)); +} #endif + +#endif