diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2010-06-28 19:02:15 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2010-06-28 19:02:15 +0000 |
commit | e141e4fd4b090aebdb8888f3e7d83d0176470953 (patch) | |
tree | bbb266df93f133bf530816ed479e248e622f3321 /navit/navit/route.c | |
parent | 024f111544aced2a0bbd585b3b99074b31ce5dbd (diff) | |
download | navit-e141e4fd4b090aebdb8888f3e7d83d0176470953.tar.gz |
Fix:Core:Build on older glibs
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@3440 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/navit/route.c')
-rw-r--r-- | navit/navit/route.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/navit/navit/route.c b/navit/navit/route.c index 5d187c85e..ee147e605 100644 --- a/navit/navit/route.c +++ b/navit/navit/route.c @@ -70,6 +70,12 @@ #include "roadprofile.h" #include "debug.h" +#if GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION < 10 +#define g_slice_alloc0 g_malloc0 +#define g_slice_new0(x) g_new0(x,1) +#define g_slice_free(x,y) g_free(y) +#define g_slice_free1(x,y) g_free(y) +#endif struct map_priv { struct route *route; |