aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/svgalib/files/gtfcalc-round.patch
blob: 076c350953aba4458da12e6059c234159423d63e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Index: svgalib-1.9.25/utils/gtf/gtfcalc.c
===================================================================
--- svgalib-1.9.25.orig/utils/gtf/gtfcalc.c
+++ svgalib-1.9.25/utils/gtf/gtfcalc.c
@@ -64,10 +64,12 @@ static GTF_constants GC = {
 
 /*-------------------------- Implementation -------------------------------*/
 
+#ifndef HAVE_ROUND
 static double round(double v)
 {
 	return floor(v + 0.5);
 }
+#endif
 
 static void GetInternalConstants(GTF_constants *c)
 /****************************************************************************