aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/internal.h
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2010-02-09 22:55:16 +0000
committerMåns Rullgård <mans@mansr.com>2010-02-09 22:55:16 +0000
commit8e05f06912e2bb39c77609e4d9161bfb46ea8fde (patch)
tree1cff567465122196e67eff1b17db709861765195 /libavutil/internal.h
parent645d26520a1a1900a89f2811eb78a5d637ca7877 (diff)
downloadffmpeg-8e05f06912e2bb39c77609e4d9161bfb46ea8fde.tar.gz
Define missing llrint() as macro instead of inline function
This fixes building on some broken systems. Originally committed as revision 21735 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/internal.h')
-rw-r--r--libavutil/internal.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/libavutil/internal.h b/libavutil/internal.h
index cd63b3d2a4..d22b4e660b 100644
--- a/libavutil/internal.h
+++ b/libavutil/internal.h
@@ -225,10 +225,8 @@ static inline av_const unsigned int ff_sqrt(unsigned int a)
#endif /* HAVE_EXP2F */
#if !HAVE_LLRINT
-static av_always_inline av_const long long llrint(double x)
-{
- return rint(x);
-}
+#undef llrint
+#define llrint(x) rint(x)
#endif /* HAVE_LLRINT */
#if !HAVE_LOG2