Commit 8a62d701 authored by bellard's avatar bellard

win32: rint() does not seem to be defined with mingw32-gcc 2.95 - do you have a better solution ?


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1519 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 96eb8838
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment