diff --git a/include/novascon.h b/include/novascon.h index 393375ca..e1cfe6ad 100644 --- a/include/novascon.h +++ b/include/novascon.h @@ -67,4 +67,4 @@ extern const double ANGVEL; extern const double RMASS[12]; -#endif +#endif /* _CONSTS_ */ diff --git a/src/novas.c b/src/novas.c index 7496edaf..91f07e6e 100644 --- a/src/novas.c +++ b/src/novas.c @@ -1613,12 +1613,10 @@ short place(double jd_tt, const object *source, const observer *location, double // Variable 'loc' determines whether Earth deflection is included. if(loc == NOVAS_OBSERVER_ON_EARTH) { - double pog[3], vog[3]; + double pog[3]; - for(i = 3; --i >= 0;) { + for(i = 3; --i >= 0;) pog[i] = pob[i] - peb[i]; - vog[i] = vob[i] - veb[i]; - } limb_angle(pos, pog, NULL, &frlimb); if(frlimb < 0.8) diff --git a/src/novascon.c b/src/novascon.c index 4803dc84..7150b5ab 100644 --- a/src/novascon.c +++ b/src/novascon.c @@ -16,6 +16,9 @@ * http://www.usno.navy.mil/USNO/astronomical-applications */ +// We shall never use these in the internal API. We define precompiler constants instead... +#ifndef __NOVAS_INTERNAL_API__ + #include "novas.h" #include "novascon.h" @@ -33,9 +36,7 @@ const double ANGVEL = NOVAS_EARTH_ANGVEL; const double RMASS[12] = NOVAS_RMASS_INIT; - - - +#endif /* __NOVAS_INTERNAL_API__ */