From ea937d01410f07badd6e39b9079205c5ea40a9e4 Mon Sep 17 00:00:00 2001 From: Fabrice Bellard Date: Tue, 28 Jan 2003 14:50:26 +0000 Subject: win32: rint() does not seem to be defined with mingw32-gcc 2.95 - do you have a better solution ? Originally committed as revision 1519 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/dsputil.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libavcodec/dsputil.h') diff --git a/libavcodec/dsputil.h b/libavcodec/dsputil.h index b442501..665bdac 100644 --- a/libavcodec/dsputil.h +++ b/libavcodec/dsputil.h @@ -331,7 +331,12 @@ static int name16(void /*MpegEncContext*/ *s, uint8_t *dst, uint8_t *src, int st /* btw, rintf() is existing on fbsd too -- alex */ static inline long int lrintf(float x) { +#ifdef CONFIG_WIN32 + /* XXX: incorrect, but make it compile */ + return (int)(x); +#else return (int)(rint(x)); +#endif } #endif -- cgit v1.1