summaryrefslogtreecommitdiff
path: root/navit/types.h
diff options
context:
space:
mode:
authorMichael Dankov <tryagain@navit-project.org>2016-07-27 02:17:59 +0300
committerMichael Dankov <tryagain@navit-project.org>2016-07-27 02:17:59 +0300
commitc14bb728e223f2d113919233db3dc77368cd3c47 (patch)
treefa3c89029e9af9345183f49732498a3f8b323f29 /navit/types.h
parentcdc4245f6a9f04236ad027a5630a1777e6398a8e (diff)
downloadnavit-c14bb728e223f2d113919233db3dc77368cd3c47.tar.gz
refactor:maptool:Support 56 bit node IDsR6731
We need it because openstreetmap data recently has passed 2^32 node id value. Also, running maptool on 32 bit systems won't work at least in following cases: - a node with osm id=>2^32 is a via member of a turn restriction relation; - input file has unordered node ids, that's the case, for example, for overpass turbo exported data. To avoid confusion, I have disabled maptool build for 32bit systems.
Diffstat (limited to 'navit/types.h')
-rw-r--r--navit/types.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/navit/types.h b/navit/types.h
index 987b42a71..b91e01bd8 100644
--- a/navit/types.h
+++ b/navit/types.h
@@ -29,9 +29,11 @@ typedef int32_t s32;
typedef uint32_t u32;
#ifdef HAVE_API_WIN32_BASE
+#define ULONGLONG_FMT "%I64u"
#define LONGLONG_FMT "%I64d"
#define LONGLONG_HEX_FMT "%I64x"
#else
+#define ULONGLONG_FMT "%llu"
#define LONGLONG_FMT "%lld"
#define LONGLONG_HEX_FMT "%llx"
#endif