]> git.mxchange.org Git - simgear.git/blobdiff - simgear/timing/sg_time.cxx
MacOS tweaks contributed by Darrell Walisser.
[simgear.git] / simgear / timing / sg_time.cxx
index e10400c3afe2fe5358e8bc7c1be4e61bf16f9c40..16d50d3ef3962056c2ee2884f14bca6b1b907c77 100644 (file)
 #define RADHR(x)        DEGHR(x*RAD_TO_DEG)
 
 
+static const double MJD0    = 2415020.0;
+static const double J2000   = 2451545.0 - MJD0;
+static const double SIDRATE = 0.9972695677;
+
+
 SGTime::SGTime( double lon, double lat, const string& root )
 {
     FG_LOG( FG_EVENT, FG_INFO, "Initializing Time" );
@@ -413,7 +418,7 @@ time_t sgTimeGetGMT(int year, int month, int day, int hour, int min, int sec)
 #       define TIMEZONE_OFFSET_WORKS 1
 #   endif
 
-    long int start = mktime(&mt);
+    time_t start = mktime(&mt);
 
     FG_LOG( FG_EVENT, FG_DEBUG, "start1 = " << start );
     // the ctime() call can screw up time progression on some versions