Mercurial > libavcodec.hg
diff dsputil.h @ 1040:998d5035b15b libavcodec
win32: rint() does not seem to be defined with mingw32-gcc 2.95 - do you have a better solution ?
author | bellard |
---|---|
date | Tue, 28 Jan 2003 14:50:26 +0000 |
parents | b4172ff70d27 |
children | b32afefe7d33 |
line wrap: on
line diff
--- a/dsputil.h Tue Jan 28 14:37:44 2003 +0000 +++ b/dsputil.h Tue Jan 28 14:50:26 2003 +0000 @@ -331,7 +331,12 @@ /* 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