From ca9627e70852f6b2e835660df870fe3ab405882d Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sun, 1 Sep 2019 00:00:32 +0200 Subject: Initial import --- app-misc/navit/files/navit-ds-externc.patch | 34 +++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 app-misc/navit/files/navit-ds-externc.patch (limited to 'app-misc/navit/files/navit-ds-externc.patch') 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" + -- cgit v1.2.3