summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authornplourde <nplourde@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-05-10 00:46:30 +0000
committernplourde <nplourde@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-05-10 00:46:30 +0000
commitc52b30a43d5b8b9af44efd321a9e7e21bbf7bc4c (patch)
treef4ee941818679f58683782aca54ae7bf5e5e129b /libvo
parentf30e57671945c338258ea48ddb3f94f9a82fad7f (diff)
downloadmpv-c52b30a43d5b8b9af44efd321a9e7e21bbf7bc4c.tar.bz2
mpv-c52b30a43d5b8b9af44efd321a9e7e21bbf7bc4c.tar.xz
if define HAVE_ROUND do not define round again. patch by Steven M. Schultz <sms@2BSD.COM>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15395 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/gtf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libvo/gtf.c b/libvo/gtf.c
index 07a0887c57..95ad01cd74 100644
--- a/libvo/gtf.c
+++ b/libvo/gtf.c
@@ -9,6 +9,7 @@
*/
//Version 0.4
+#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
@@ -24,10 +25,12 @@
static GTF_constants GTF_given_constants = { 3.0,550.0,1,8,1.8,8,40,20,128,600 };
+#ifndef HAVE_ROUND
static double round(double v)
{
return floor(v + 0.5);
}
+#endif
static void GetRoundedConstants(GTF_constants *c)
{