]> git.mxchange.org Git - simgear.git/blobdiff - simgear/math/sg_geodesy.cxx
FG_ to SG_ name changes.
[simgear.git] / simgear / math / sg_geodesy.cxx
index 3981530885f7e66e07ecaa38dbc00a408c964c88..4e0c92fb7c2176db042133e65f2a646fdd60c0ad 100644 (file)
@@ -9,7 +9,7 @@
 
 #include <simgear/compiler.h>
 
-#ifdef FG_HAVE_STD_INCLUDES
+#ifdef SG_HAVE_STD_INCLUDES
 # include <cmath>
 # include <cerrno>
 # include <cstdio>
@@ -142,6 +142,10 @@ void sgGeodToGeoc( double lat_geod, double alt, double *sl_radius,
 {
     double lambda_sl, sin_lambda_sl, cos_lambda_sl, sin_mu, cos_mu, px, py;
     
+#ifdef DOMAIN_ERR_DEBUG
+    errno = 0;
+#endif
+
     lambda_sl = atan( E*E * tan(lat_geod) ); // sea level geocentric latitude
     sin_lambda_sl = sin( lambda_sl );
     cos_lambda_sl = cos( lambda_sl );