mirror of
https://github.com/mpv-player/mpv
synced 2025-03-22 03:08:33 +00:00
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
This commit is contained in:
parent
f30e576719
commit
c52b30a43d
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user