changeset 796:8a5b70c68fbd libavcodec

added lrintf for non ISOC libcs (fixme: find a better test)
author bellard
date Tue, 29 Oct 2002 22:38:21 +0000
parents 55add0e7eafb
children 308e973c3fda
files dsputil.h
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dsputil.h	Tue Oct 29 22:27:30 2002 +0000
+++ b/dsputil.h	Tue Oct 29 22:38:21 2002 +0000
@@ -269,4 +269,13 @@
                const FFTSample *input, FFTSample *tmp);
 void ff_mdct_end(MDCTContext *s);
 
+#if defined(__FreeBSD__) || (__bsdi__)
+/* XXX: add ISOC specific test to avoid specific BSD testing. */
+/* better than nothing implementation. */
+static inline long int lrintf(float x)
+{
+    return (int)(rint(x));
+}
 #endif
+
+#endif