Commit 3fbeefb71dc09f5c70beca4348debe5fb02fa19a

Authored by Jürgen Knödlseder
1 parent 591eb6f5

Add kluge for opensolaris compilation (#1855)

include/GSkyDir.hpp
... ... @@ -39,6 +39,11 @@ class GTime;
39 39 /* __ Compile options ____________________________________________________ */
40 40 #define G_SINCOS_CACHE
41 41  
  42 +/* __ Kluge for compilation on Sun _______________________________________ */
  43 +#ifdef sun
  44 +#undef sun
  45 +#endif
  46 +
42 47  
43 48 /***********************************************************************//**
44 49 * @class GSkyDir
... ... @@ -80,8 +85,8 @@ public:
80 85 void celvector(const GVector& vector);
81 86 void rotate_deg(const double& phi, const double& theta);
82 87 void precess(const double& from_epoch, const double& to_epoch);
83   - void sun(const GTime& time, const double& epoch = gammalib::epoch2000);
84   - void moon(const GTime& time, const double& epoch = gammalib::epoch2000);
  88 + void sun(const GTime& time, const double& epoch = 2000.0);
  89 + void moon(const GTime& time, const double& epoch = 2000.0);
85 90 const double& l(void) const;
86 91 const double& b(void) const;
87 92 const double& ra(void) const;
... ...
include/GTools.hpp
... ... @@ -50,7 +50,6 @@ namespace gammalib {
50 50 const double sec2day = 1.0 / sec_in_day; // seconds => days
51 51 const double tai2tt = 32.184; // TAI => TT time system
52 52 const double mec2 = 0.5109989461; // Electron rest mass (MeV)
53   - const double epoch2000 = 2000.0; // Epoch 2000.0
54 53 }
55 54  
56 55 /* __ Prototypes ________________________________________________________ */
... ...