summaryrefslogtreecommitdiff
path: root/navit/sunriset.h
diff options
context:
space:
mode:
authorhorwitz <horwitz@ffa7fe5e-494d-0410-b361-a75ebd5db220>2010-03-16 23:28:05 +0000
committerhorwitz <horwitz@ffa7fe5e-494d-0410-b361-a75ebd5db220>2010-03-16 23:28:05 +0000
commit1edae899466903de48d956c54ffe85ae534b6b19 (patch)
treeea1d4d0ae186344bf845f17f6bf48b351d1cbd49 /navit/sunriset.h
parent3f49282188090da121da398767e80e0a8a4f6391 (diff)
downloadnavit-svn-1edae899466903de48d956c54ffe85ae534b6b19.tar.gz
Core:Fix:Fix some warnings.
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@3024 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/sunriset.h')
-rw-r--r--navit/sunriset.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/navit/sunriset.h b/navit/sunriset.h
index 9df6ca26..36a77093 100644
--- a/navit/sunriset.h
+++ b/navit/sunriset.h
@@ -7,7 +7,9 @@ extern long int timezone_offset;
#define HOURS(h) ((int)(floor(h)))
#define MINUTES(h) ((int)(60*(h-floor(h))))
+#ifndef ABS
#define ABS(x) ((x)<0?-(x):(x))
+#endif
/* A macro to compute the number of days elapsed since 2000 Jan 0.0 */
/* (which is equal to 1999 Dec 31, 0h UT) */