From cc737e54d4d99d47d3a5d13d0b23a15d4e1221f1 Mon Sep 17 00:00:00 2001 From: DennisOSRM Date: Mon, 10 Oct 2011 18:54:05 +0200 Subject: [PATCH] Global functions inlined to ease compile trouble --- DataStructures/Util.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DataStructures/Util.h b/DataStructures/Util.h index 4b7bb05d4..f916e270e 100644 --- a/DataStructures/Util.h +++ b/DataStructures/Util.h @@ -58,8 +58,8 @@ inline double get_timestamp() return double(tp.tv_sec) + tp.tv_usec / 1000000.; } -double y2lat(double a) { return 180/M_PI * (2 * atan(exp(a*M_PI/180)) - M_PI/2); } -double lat2y(double a) { return 180/M_PI * log(tan(M_PI/4+a*(M_PI/180)/2)); } +inline double y2lat(double a) { return 180/M_PI * (2 * atan(exp(a*M_PI/180)) - M_PI/2); } +inline double lat2y(double a) { return 180/M_PI * log(tan(M_PI/4+a*(M_PI/180)/2)); } inline unsigned boost_thread_id_hash(boost::thread::id const& id) {