Skip to content

Commit 151c95b

Browse files
committedSep 7, 2017
main.cpp: server-only builds should not include client headers
1 parent a3c298e commit 151c95b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎src/main.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,19 @@ with this program; if not, write to the Free Software Foundation, Inc.,
1818
*/
1919

2020
#include "irrlicht.h" // createDevice
21-
#include "mainmenumanager.h"
2221
#include "irrlichttypes_extrabloated.h"
2322
#include "chat_interface.h"
2423
#include "debug.h"
2524
#include "unittest/test.h"
2625
#include "server.h"
2726
#include "filesys.h"
2827
#include "version.h"
29-
#include "guiMainMenu.h"
3028
#include "game.h"
3129
#include "defaultsettings.h"
3230
#include "gettext.h"
3331
#include "log.h"
3432
#include "quicktune.h"
3533
#include "httpfetch.h"
36-
#include "guiEngine.h"
3734
#include "gameparams.h"
3835
#include "database.h"
3936
#include "config.h"
@@ -44,7 +41,10 @@ with this program; if not, write to the Free Software Foundation, Inc.,
4441
#include "terminal_chat_console.h"
4542
#endif
4643
#ifndef SERVER
44+
#include "guiMainMenu.h"
4745
#include "client/clientlauncher.h"
46+
#include "guiEngine.h"
47+
#include "mainmenumanager.h"
4848
#endif
4949

5050
#ifdef HAVE_TOUCHSCREENGUI

0 commit comments

Comments
 (0)
Please sign in to comment.