[GRASS-SVN] r61312 - in grass/trunk: imagery/i.aster.toar vector/v.lrs/v.lrs.label

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jul 22 01:37:05 PDT 2014


Author: neteler
Date: 2014-07-22 01:37:05 -0700 (Tue, 22 Jul 2014)
New Revision: 61312

Modified:
   grass/trunk/imagery/i.aster.toar/main.c
   grass/trunk/vector/v.lrs/v.lrs.label/main.c
Log:
avoid use of private PI definitions

Modified: grass/trunk/imagery/i.aster.toar/main.c
===================================================================
--- grass/trunk/imagery/i.aster.toar/main.c	2014-07-22 08:36:50 UTC (rev 61311)
+++ grass/trunk/imagery/i.aster.toar/main.c	2014-07-22 08:37:05 UTC (rev 61312)
@@ -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/trunk/vector/v.lrs/v.lrs.label/main.c
===================================================================
--- grass/trunk/vector/v.lrs/v.lrs.label/main.c	2014-07-22 08:36:50 UTC (rev 61311)
+++ grass/trunk/vector/v.lrs/v.lrs.label/main.c	2014-07-22 08:37:05 UTC (rev 61312)
@@ -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