aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2017-09-07 23:51:06 +0200
committerLoic Blot <loic.blot@unix-experience.fr>2017-09-07 23:51:06 +0200
commit151c95bb9bb324ef27df28bbd4f2bce944e35162 (patch)
tree4202cad244a667a20f93359c5c0953759d230f3a
parenta3c298e1d1f02634e87c7ba1746fd7e9ed444875 (diff)
downloadminetest-151c95bb9bb324ef27df28bbd4f2bce944e35162.tar.gz
minetest-151c95bb9bb324ef27df28bbd4f2bce944e35162.tar.bz2
minetest-151c95bb9bb324ef27df28bbd4f2bce944e35162.zip
main.cpp: server-only builds should not include client headers
-rw-r--r--src/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp
index e2f2b22cf..1a3c49658 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -18,7 +18,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
*/
#include "irrlicht.h" // createDevice
-#include "mainmenumanager.h"
#include "irrlichttypes_extrabloated.h"
#include "chat_interface.h"
#include "debug.h"
@@ -26,14 +25,12 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "server.h"
#include "filesys.h"
#include "version.h"
-#include "guiMainMenu.h"
#include "game.h"
#include "defaultsettings.h"
#include "gettext.h"
#include "log.h"
#include "quicktune.h"
#include "httpfetch.h"
-#include "guiEngine.h"
#include "gameparams.h"
#include "database.h"
#include "config.h"
@@ -44,7 +41,10 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "terminal_chat_console.h"
#endif
#ifndef SERVER
+#include "guiMainMenu.h"
#include "client/clientlauncher.h"
+#include "guiEngine.h"
+#include "mainmenumanager.h"
#endif
#ifdef HAVE_TOUCHSCREENGUI