summaryrefslogtreecommitdiffstats
path: root/app-misc/navit/files
diff options
context:
space:
mode:
Diffstat (limited to 'app-misc/navit/files')
-rw-r--r--app-misc/navit/files/navit-ds-externc.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/app-misc/navit/files/navit-ds-externc.patch b/app-misc/navit/files/navit-ds-externc.patch
new file mode 100644
index 0000000..ad49b6a
--- /dev/null
+++ b/app-misc/navit/files/navit-ds-externc.patch
@@ -0,0 +1,34 @@
+diff -dPNur navit-9999/navit/gui/cegui/gui_sdl.h navit-9999-ds/navit/gui/cegui/gui_sdl.h
+--- navit-9999/navit/gui/cegui/gui_sdl.h 2008-11-16 04:33:38.000000000 +0100
++++ navit-9999-ds/navit/gui/cegui/gui_sdl.h 2008-11-16 04:04:55.000000000 +0100
+@@ -29,8 +29,10 @@
+ extern struct navit *sdl_gui_navit;
+
+
++extern "C" {
+ bool BookmarkGo(const char * name);
+ bool FormerDestGo(const char * name);
++}
+
+ struct gui_priv {
+ struct navit *nav;
+diff -dPNur navit-9999/navit/gui/cegui/gui_sdl_window.cpp navit-9999-ds/navit/gui/cegui/gui_sdl_window.cpp
+--- navit-9999/navit/gui/cegui/gui_sdl_window.cpp 2008-11-16 04:33:38.000000000 +0100
++++ navit-9999-ds/navit/gui/cegui/gui_sdl_window.cpp 2008-11-16 04:03:25.000000000 +0100
+@@ -24,6 +24,7 @@
+ // FIXME temporary fix for enum
+ #include "projection.h"
+
++extern "C" {
+ #include "item.h"
+ #include "navit.h"
+ #include "vehicle.h"
+@@ -43,7 +44,7 @@
+ #include "track.h"
+ #include "menu.h"
+ #include "map.h"
+-
++}
+
+ #include "CEGUI.h"
+