Integrating precompiled headers support (might speed up compilation). Currently disabled (in .pro files).
This commit is contained in:
@@ -21,8 +21,9 @@
|
||||
#ifndef _CLIENTCALLBACK_H_
|
||||
#define _CLIENTCALLBACK_H_
|
||||
|
||||
#include <string>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <string>
|
||||
|
||||
#include <playerdata.h>
|
||||
#include <game_defs.h>
|
||||
#include <gamedata.h>
|
||||
|
||||
@@ -21,10 +21,11 @@
|
||||
#ifndef _CLIENTCONTEXT_H_
|
||||
#define _CLIENTCONTEXT_H_
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
#include <net/netcontext.h>
|
||||
#include <net/receivebuffer.h>
|
||||
#include <net/sessiondata.h>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
|
||||
class ClientContext : public NetContext
|
||||
|
||||
@@ -21,10 +21,11 @@
|
||||
#ifndef _CLIENTSTATE_H_
|
||||
#define _CLIENTSTATE_H_
|
||||
|
||||
#include <net/socket_helper.h> // needed for correct order of header files.
|
||||
#include <third_party/boost/timers.hpp>
|
||||
#include <string>
|
||||
#include <memory>
|
||||
#include <third_party/boost/timers.hpp>
|
||||
|
||||
#include <net/socket_helper.h> // needed for correct order of header files.
|
||||
|
||||
#define CLIENT_INITIAL_STATE ClientStateInit
|
||||
|
||||
|
||||
@@ -21,14 +21,15 @@
|
||||
#ifndef _CLIENTTHREAD_H_
|
||||
#define _CLIENTTHREAD_H_
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <string>
|
||||
|
||||
#include <core/thread.h>
|
||||
#include <net/senderinterface.h>
|
||||
#include <guiinterface.h>
|
||||
#include <serverdata.h>
|
||||
#include <playerdata.h>
|
||||
#include <gamedata.h>
|
||||
#include <string>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
class ClientContext;
|
||||
class ClientState;
|
||||
|
||||
@@ -21,11 +21,11 @@
|
||||
#ifndef _DOWNLOADERTHREAD_H_
|
||||
#define _DOWNLOADERTHREAD_H_
|
||||
|
||||
#include <core/thread.h>
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <queue>
|
||||
#include <vector>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
#include <core/thread.h>
|
||||
|
||||
#define DOWNLOADER_THREAD_TERMINATE_TIMEOUT THREAD_WAIT_INFINITE
|
||||
class DownloadHelper;
|
||||
|
||||
+3
-2
@@ -21,11 +21,12 @@
|
||||
#ifndef _IRCTHREAD_H_
|
||||
#define _IRCTHREAD_H_
|
||||
|
||||
#include <net/irccallback.h>
|
||||
#include <core/thread.h>
|
||||
#include <third_party/boost/timers.hpp>
|
||||
#include <string>
|
||||
|
||||
#include <net/irccallback.h>
|
||||
#include <core/thread.h>
|
||||
|
||||
struct IrcContext;
|
||||
|
||||
class IrcThread : public Thread
|
||||
|
||||
+3
-3
@@ -21,15 +21,15 @@
|
||||
#ifndef _NETPACKET_H_
|
||||
#define _NETPACKET_H_
|
||||
|
||||
#include <vector>
|
||||
#include <list>
|
||||
|
||||
#include <net/socket_helper.h>
|
||||
#include <playerdata.h>
|
||||
#include <game_defs.h>
|
||||
#include <gamedata.h>
|
||||
#include <core/crypthelper.h>
|
||||
|
||||
#include <vector>
|
||||
#include <list>
|
||||
|
||||
#define NET_VERSION_MAJOR 5
|
||||
#define NET_VERSION_MINOR 2
|
||||
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
#define _RECEIVEBUFFER_H_
|
||||
|
||||
#include <net/netpacket.h>
|
||||
#include <list>
|
||||
|
||||
// MUST be larger than MAX_PACKET_SIZE
|
||||
#define RECV_BUF_SIZE 2 * MAX_PACKET_SIZE
|
||||
|
||||
@@ -21,12 +21,13 @@
|
||||
#ifndef _RECEIVERHELPER_H_
|
||||
#define _RECEIVERHELPER_H_
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <deque>
|
||||
|
||||
#include <net/socket_helper.h>
|
||||
#include <net/netpacket.h>
|
||||
#include <net/receivebuffer.h>
|
||||
|
||||
#include <deque>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
class ReceiverHelper
|
||||
{
|
||||
|
||||
@@ -21,9 +21,9 @@
|
||||
#ifndef _RESOLVERTHREAD_H_
|
||||
#define _RESOLVERTHREAD_H_
|
||||
|
||||
#include <core/thread.h>
|
||||
#include <string>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
#include <core/thread.h>
|
||||
|
||||
class ClientContext;
|
||||
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
|
||||
#include <net/sessiondata.h>
|
||||
#include <net/netpacket.h>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
class SenderInterface
|
||||
{
|
||||
|
||||
@@ -26,9 +26,6 @@
|
||||
#include <net/netpacket.h>
|
||||
#include <net/sendercallback.h>
|
||||
|
||||
#include <list>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
class SessionData;
|
||||
class SendDataManager;
|
||||
#define SENDER_THREAD_TERMINATE_TIMEOUT THREAD_WAIT_INFINITE
|
||||
|
||||
@@ -22,9 +22,10 @@
|
||||
#define _SERVERACCEPTTHREAD_H_
|
||||
|
||||
#include <boost/asio.hpp>
|
||||
#include <string>
|
||||
|
||||
#include <game_defs.h>
|
||||
#include <gui/guiinterface.h>
|
||||
#include <string>
|
||||
|
||||
class ServerLobbyThread;
|
||||
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
|
||||
#include <net/servergamethread.h>
|
||||
#include <playerdata.h>
|
||||
#include <third_party/boost/timers.hpp>
|
||||
|
||||
|
||||
#ifdef _MSC_VER
|
||||
|
||||
@@ -21,12 +21,13 @@
|
||||
#ifndef _SERVERGAMETHREAD_H_
|
||||
#define _SERVERGAMETHREAD_H_
|
||||
|
||||
#include <third_party/boost/timers.hpp>
|
||||
#include <deque>
|
||||
|
||||
#include <net/sessionmanager.h>
|
||||
#include <gui/guiinterface.h>
|
||||
#include <gamedata.h>
|
||||
#include <third_party/boost/timers.hpp>
|
||||
|
||||
#include <deque>
|
||||
|
||||
#define GAME_THREAD_TERMINATE_TIMEOUT THREAD_WAIT_INFINITE
|
||||
|
||||
|
||||
@@ -22,16 +22,15 @@
|
||||
#define _SERVERRECVTHREAD_H_
|
||||
|
||||
#include <boost/asio.hpp>
|
||||
#include <deque>
|
||||
#include <boost/regex.hpp>
|
||||
|
||||
#include <core/timermanager.h>
|
||||
#include <net/sessionmanager.h>
|
||||
#include <net/netpacket.h>
|
||||
#include <gui/guiinterface.h>
|
||||
#include <gamedata.h>
|
||||
|
||||
#include <deque>
|
||||
#include <list>
|
||||
#include <boost/regex.hpp>
|
||||
#include <third_party/boost/timers.hpp>
|
||||
|
||||
#define NET_LOBBY_THREAD_TERMINATE_TIMEOUT_MSEC 20000
|
||||
#define NET_ADMIN_IRC_TERMINATE_TIMEOUT_MSEC 4000
|
||||
|
||||
@@ -22,13 +22,13 @@
|
||||
#define _SERVERMANAGER_H_
|
||||
|
||||
#include <boost/asio.hpp>
|
||||
#include <game_defs.h>
|
||||
|
||||
#include <gui/guiinterface.h>
|
||||
#include <third_party/boost/timers.hpp>
|
||||
#include <string>
|
||||
#include <list>
|
||||
|
||||
#include <game_defs.h>
|
||||
#include <gui/guiinterface.h>
|
||||
|
||||
class ServerLobbyThread;
|
||||
class ServerAcceptThread;
|
||||
class SenderThread;
|
||||
|
||||
@@ -24,12 +24,13 @@
|
||||
typedef unsigned SessionId;
|
||||
|
||||
#include <boost/asio.hpp>
|
||||
#include <boost/thread.hpp>
|
||||
#include <third_party/boost/timers.hpp>
|
||||
#include <string>
|
||||
|
||||
#include <net/socket_helper.h>
|
||||
#include <net/receivebuffer.h>
|
||||
#include <net/sessiondatacallback.h>
|
||||
#include <string>
|
||||
#include <boost/thread.hpp>
|
||||
#include <third_party/boost/timers.hpp>
|
||||
|
||||
#define INVALID_SESSION 0
|
||||
#define SESSION_ID_INIT INVALID_SESSION
|
||||
|
||||
@@ -21,14 +21,13 @@
|
||||
#ifndef _SESSIONMANAGER_H_
|
||||
#define _SESSIONMANAGER_H_
|
||||
|
||||
#include <boost/function.hpp>
|
||||
#include <map>
|
||||
|
||||
#include <net/sessiondata.h>
|
||||
#include <playerdata.h>
|
||||
#include <core/thread.h>
|
||||
|
||||
#include <boost/function.hpp>
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
class SenderInterface;
|
||||
class NetPacket;
|
||||
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
#ifndef _TRANSFERHELPER_H_
|
||||
#define _TRANSFERHELPER_H_
|
||||
|
||||
#include <string>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <string>
|
||||
|
||||
struct TransferData;
|
||||
|
||||
|
||||
@@ -21,10 +21,10 @@
|
||||
#ifndef _UPLOADERTHREAD_H_
|
||||
#define _UPLOADERTHREAD_H_
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <queue>
|
||||
#include <core/thread.h>
|
||||
|
||||
#include <queue>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
#define UPLOADER_THREAD_TERMINATE_TIMEOUT THREAD_WAIT_INFINITE
|
||||
class UploadHelper;
|
||||
|
||||
Reference in New Issue
Block a user