From a7f5022c415badc940d0f4ff3025f6b19107a878 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 11 Nov 2013 21:51:04 +0300 Subject: Fix compilation in clang with libc++. --- src/gui/gui.cpp | 2 ++ src/gui/gui.h | 1 + src/gui/sdlinput.cpp | 1 - src/gui/sdlinput.h | 4 ++-- src/gui/widgets/textfield.cpp | 1 + src/gui/windows/chatwindow.cpp | 1 + 6 files changed, 7 insertions(+), 3 deletions(-) (limited to 'src/gui') diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 0c75dd4e4..4284c1af8 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -20,6 +20,8 @@ * along with this program. If not, see . */ +#include "mouseinput.h" + #include "gui/gui.h" #include "gui/focushandler.h" diff --git a/src/gui/gui.h b/src/gui/gui.h index 85ec33415..7ac546102 100644 --- a/src/gui/gui.h +++ b/src/gui/gui.h @@ -33,6 +33,7 @@ class Graphics; class GuiConfigListener; class ImageSet; class MouseEvent; +class MouseInput; class SDLFont; class SDLInput; class Window; diff --git a/src/gui/sdlinput.cpp b/src/gui/sdlinput.cpp index 3dcbd4caa..52d7a8fec 100644 --- a/src/gui/sdlinput.cpp +++ b/src/gui/sdlinput.cpp @@ -58,7 +58,6 @@ #include "gui/sdlinput.h" -#include "mouseinput.h" #include "sdlshared.h" #include "input/inputmanager.h" diff --git a/src/gui/sdlinput.h b/src/gui/sdlinput.h index 368367bd2..65e0a78ce 100644 --- a/src/gui/sdlinput.h +++ b/src/gui/sdlinput.h @@ -61,6 +61,8 @@ #include "input/keyinput.h" +#include "mouseinput.h" + #include #include @@ -69,8 +71,6 @@ #include -class MouseInput; - namespace Key { enum diff --git a/src/gui/widgets/textfield.cpp b/src/gui/widgets/textfield.cpp index a361e1a12..abf90019a 100644 --- a/src/gui/widgets/textfield.cpp +++ b/src/gui/widgets/textfield.cpp @@ -23,6 +23,7 @@ #include "gui/widgets/textfield.h" #include "client.h" +#include "mouseinput.h" #ifdef ANDROID #include "input/inputmanager.h" diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp index 79cf0eff3..508166510 100644 --- a/src/gui/windows/chatwindow.cpp +++ b/src/gui/windows/chatwindow.cpp @@ -28,6 +28,7 @@ #include "configuration.h" #include "game.h" #include "guild.h" +#include "mouseinput.h" #include "party.h" #include "spellshortcut.h" -- cgit v1.2.3-70-g09d2