summaryrefslogtreecommitdiffstats
path: root/display/svgalib/c99_round.patch
blob: dd04f30dd738998ee02167a8e1851e930dd589e8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- utils/gtf/gtfcalc.c.orig	2009-08-08 15:28:03.000000000 +0800
+++ utils/gtf/gtfcalc.c	2009-08-08 15:28:51.000000000 +0800
@@ -64,10 +64,12 @@ static GTF_constants GC = {
 
 /*-------------------------- Implementation -------------------------------*/
 
+#ifndef __USE_ISOC99
 static double round(double v)
 {
 	return floor(v + 0.5);
 }
+#endif
 
 static void GetInternalConstants(GTF_constants *c)
 /****************************************************************************