diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2009-11-13 07:59:59 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2009-11-13 07:59:59 +0000 |
commit | f6659af57376e9f554cdea65cb7f33ffb77e6687 (patch) | |
tree | 0d03c93964eb15aa80c01ec2e3f9b00e3da95e79 /navit/sunriset.h | |
parent | 31aeeaf4f658028b3d90553403ee7bfedf79f303 (diff) | |
download | navit-f6659af57376e9f554cdea65cb7f33ffb77e6687.tar.gz |
Fix:Core:Avoid gmtime_r which isn't available on all platforms
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@2751 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/sunriset.h')
-rw-r--r-- | navit/sunriset.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/navit/sunriset.h b/navit/sunriset.h index 1ccad5797..9df6ca26f 100644 --- a/navit/sunriset.h +++ b/navit/sunriset.h @@ -7,7 +7,7 @@ extern long int timezone_offset; #define HOURS(h) ((int)(floor(h))) #define MINUTES(h) ((int)(60*(h-floor(h)))) -#define ABS(x) ((x)<0?-(x):(x)) +#define ABS(x) ((x)<0?-(x):(x)) /* A macro to compute the number of days elapsed since 2000 Jan 0.0 */ /* (which is equal to 1999 Dec 31, 0h UT) */ @@ -100,7 +100,7 @@ extern long int timezone_offset; double __daylen__( int year, int month, int day, double lon, double lat, double altit, int upper_limb ); -int __sunriset__( time_t ts, double lon, double lat, +int __sunriset__( int year, int month, int day, double lon, double lat, double altit, int upper_limb, double *rise, double *set ); void sunpos( double d, double *lon, double *r ); |