mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-05 19:31:04 +00:00
Avoid including client headers on server builds
This commit is contained in:
parent
bc4ab8b99e
commit
5727d74d37
8 changed files with 25 additions and 5 deletions
|
@ -36,9 +36,12 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#include "network/peerhandler.h"
|
||||
#include "gameparams.h"
|
||||
#include "clientdynamicinfo.h"
|
||||
#include <fstream>
|
||||
#include "util/numeric.h"
|
||||
|
||||
#ifdef SERVER
|
||||
#error Do not include in server builds
|
||||
#endif
|
||||
|
||||
#define CLIENT_CHAT_MESSAGE_LIMIT_PER_10S 10.0f
|
||||
|
||||
struct ClientEvent;
|
||||
|
|
|
@ -24,6 +24,10 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#include "activeobjectmgr.h" // client::ActiveObjectMgr
|
||||
#include <set>
|
||||
|
||||
#ifdef SERVER
|
||||
#error Do not include in server builds
|
||||
#endif
|
||||
|
||||
class ClientSimpleObject;
|
||||
class ClientMap;
|
||||
class ClientScripting;
|
||||
|
|
|
@ -22,6 +22,10 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#include "irrlichttypes.h"
|
||||
#include <string>
|
||||
|
||||
#ifdef SERVER
|
||||
#error Do not include in server builds
|
||||
#endif
|
||||
|
||||
class InputHandler;
|
||||
class ChatBackend;
|
||||
class RenderingEngine;
|
||||
|
|
|
@ -30,6 +30,10 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
// include the shadow mapper classes too
|
||||
#include "client/shadows/dynamicshadowsrender.h"
|
||||
|
||||
#ifdef SERVER
|
||||
#error Do not include in server builds
|
||||
#endif
|
||||
|
||||
struct VideoDriverInfo {
|
||||
std::string name;
|
||||
std::string friendly_name;
|
||||
|
|
|
@ -26,6 +26,10 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#include <unordered_set>
|
||||
#include <vector>
|
||||
|
||||
#ifdef SERVER
|
||||
#error Do not include in server builds
|
||||
#endif
|
||||
|
||||
struct SoundSpec;
|
||||
|
||||
class SoundFallbackPathProvider
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue