changeset 906:4ce17228fc5e libavutil

Workaround for missing llrintf()
author mru
date Fri, 23 Apr 2010 16:28:10 +0000
parents 77c445d28611
children 3f0ed02fff47
files libm.h
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libm.h	Fri Apr 23 13:15:11 2010 +0000
+++ b/libm.h	Fri Apr 23 16:28:10 2010 +0000
@@ -43,6 +43,11 @@
 #define llrint(x) ((long long)rint(x))
 #endif /* HAVE_LLRINT */
 
+#if !HAVE_LLRINTF
+#undef llrintf
+#define llrintf(x) ((long long)rint(x))
+#endif /* HAVE_LLRINT */
+
 #if !HAVE_LOG2
 #undef log2
 #define log2(x) (log(x) * 1.44269504088896340736)