From ee4bbdf8f7fd15733c4fa02737bf485574dce231 Mon Sep 17 00:00:00 2001 From: Ben Pfaff <blp@gnu.org> Date: Wed, 1 Jul 2009 16:39:52 -0700 Subject: [PATCH] piechart: Use definition of M_PI from GSL. The GSL header <gsl/gsl_math.h> makes sure that the standard BSD mathematical constants are defined, so we don't have to do it ourselves. --- src/output/charts/piechart.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/output/charts/piechart.c b/src/output/charts/piechart.c index 4eeb10ca63..edb83ddb2e 100644 --- a/src/output/charts/piechart.c +++ b/src/output/charts/piechart.c @@ -19,6 +19,7 @@ #include <float.h> #include <assert.h> +#include <gsl/gsl_math.h> #include <math.h> #include <stdio.h> @@ -32,14 +33,6 @@ #include "minmax.h" - -/* Pie charts of course need to know Pi :) */ -#ifndef M_PI -#define M_PI ( 22.0 / 7.0 ) -#endif - - - /* Draw a single slice of the pie */ static void draw_segment(struct chart *ch, -- 2.30.2