changeset 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 f1ac4649598f
children 1d906a29afb6
files dsputil.h
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
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