[GRASS-SVN] r61311 - in grass/branches/releasebranch_7_0: imagery/i.aster.toar vector/v.lrs/v.lrs.label
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jul 22 01:36:50 PDT 2014
Author: neteler
Date: 2014-07-22 01:36:50 -0700 (Tue, 22 Jul 2014)
New Revision: 61311
Modified:
grass/branches/releasebranch_7_0/imagery/i.aster.toar/main.c
grass/branches/releasebranch_7_0/vector/v.lrs/v.lrs.label/main.c
Log:
avoid use of private PI definitions
Modified: grass/branches/releasebranch_7_0/imagery/i.aster.toar/main.c
===================================================================
--- grass/branches/releasebranch_7_0/imagery/i.aster.toar/main.c 2014-07-22 07:52:04 UTC (rev 61310)
+++ grass/branches/releasebranch_7_0/imagery/i.aster.toar/main.c 2014-07-22 08:36:50 UTC (rev 61311)
@@ -42,7 +42,7 @@
#define KEXO8 66.41
#define KEXO9 59.83
-#define PI 3.1415926
+#define PI M_PI
double rad2ref_aster(double radiance, double doy, double sun_elevation,
double k_exo);
Modified: grass/branches/releasebranch_7_0/vector/v.lrs/v.lrs.label/main.c
===================================================================
--- grass/branches/releasebranch_7_0/vector/v.lrs/v.lrs.label/main.c 2014-07-22 07:52:04 UTC (rev 61310)
+++ grass/branches/releasebranch_7_0/vector/v.lrs/v.lrs.label/main.c 2014-07-22 08:36:50 UTC (rev 61311)
@@ -35,7 +35,7 @@
#include <grass/glocale.h>
#include "../lib/lrs.h"
-# define PI 3.1415926535897932384626433832795029L
+#define PI M_PI
typedef struct
{
More information about the grass-commit
mailing list