From: Ben Pfaff Date: Wed, 1 Jul 2009 23:39:52 +0000 (-0700) Subject: piechart: Use definition of M_PI from GSL. X-Git-Tag: v0.7.3~15 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee4bbdf8f7fd15733c4fa02737bf485574dce231;p=pspp-builds.git piechart: Use definition of M_PI from GSL. The GSL header makes sure that the standard BSD mathematical constants are defined, so we don't have to do it ourselves. --- diff --git a/src/output/charts/piechart.c b/src/output/charts/piechart.c index 4eeb10ca..edb83ddb 100644 --- a/src/output/charts/piechart.c +++ b/src/output/charts/piechart.c @@ -19,6 +19,7 @@ #include #include +#include #include #include @@ -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,