Skip to content

Commit

Permalink
smurf: Protect against SOFA adding missing SLA constants
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed Jul 16, 2014
1 parent 107a794 commit 9e7d327
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion applications/smurf/smurf_par.h
Expand Up @@ -117,13 +117,17 @@ error can not determine PI

#include "sofam.h"

/* And some from slamac.h that SOFA does not define */
/* And some from slamac.h that SOFA did not always define */

/* 180/pi: radians to degrees */
#ifndef DR2D
#define DR2D 57.295779513082320876798154814105170332405472466564
#endif

/* pi/12: hours to radians */
#ifndef DH2R
#define DH2R 0.26179938779914943653855361527329190701643078328126
#endif

/* Tidy up to prevent leakage of SLA symbols */
#undef DPI
Expand Down

0 comments on commit 9e7d327

Please sign in to comment.