From 867b70d159e99164ed0a701234c244168107f1e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Tue, 26 Dec 2023 21:00:27 +0100 Subject: [PATCH] Android build fix #2 --- src/GUI/gui.cpp | 5 ++++- src/GUI/mapitem.cpp | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/GUI/gui.cpp b/src/GUI/gui.cpp index 00367a55..a944ba63 100644 --- a/src/GUI/gui.cpp +++ b/src/GUI/gui.cpp @@ -54,8 +54,11 @@ #include "pathitem.h" #include "mapaction.h" #include "poiaction.h" -#include "navigationwidget.h" #include "gui.h" +#ifdef Q_OS_ANDROID +#include "common/util.h" +#include "navigationwidget.h" +#endif // Q_OS_ANDROID #define MAX_RECENT_FILES 10 diff --git a/src/GUI/mapitem.cpp b/src/GUI/mapitem.cpp index f395babf..fadbfba0 100644 --- a/src/GUI/mapitem.cpp +++ b/src/GUI/mapitem.cpp @@ -5,10 +5,10 @@ #include "map/map.h" #include "mapaction.h" #include "tooltip.h" +#include "mapitem.h" #ifdef Q_OS_ANDROID #include "popup.h" #endif // Q_OS_ANDROID -#include "mapitem.h" static void growLeft(Map *map, const Coordinates &c, QRectF &rect)