diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2003-01-28 14:50:26 +0000 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2003-01-28 14:50:26 +0000 |
commit | ea937d01410f07badd6e39b9079205c5ea40a9e4 (patch) | |
tree | 276f40c869776e6bd33955e85a2f21efc0d244d9 | |
parent | d44b50b0af724a37e6a2df7ba2c075d1f14fe818 (diff) | |
download | ffmpeg-ea937d01410f07badd6e39b9079205c5ea40a9e4.tar.gz |
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
-rw-r--r-- | libavcodec/dsputil.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/dsputil.h b/libavcodec/dsputil.h index b442501a3b..665bdac69e 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 |