summaryrefslogtreecommitdiff
path: root/navit/sunriset.h
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-11-13 07:59:59 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-11-13 07:59:59 +0000
commitf6659af57376e9f554cdea65cb7f33ffb77e6687 (patch)
tree0d03c93964eb15aa80c01ec2e3f9b00e3da95e79 /navit/sunriset.h
parent31aeeaf4f658028b3d90553403ee7bfedf79f303 (diff)
downloadnavit-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.h4
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 );