mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-05 19:31:04 +00:00
Change the preprocessor macro that differs server/client builds
This commit is contained in:
parent
e2ea359925
commit
37095f3e49
45 changed files with 137 additions and 88 deletions
|
@ -36,8 +36,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#include "script/common/c_types.h" // LuaError
|
||||
#include "util/numeric.h"
|
||||
#include "util/string.h" // StringMap
|
||||
#include "config.h"
|
||||
|
||||
#ifdef SERVER
|
||||
#if !IS_CLIENT_BUILD
|
||||
#error Do not include in server builds
|
||||
#endif
|
||||
|
||||
|
|
|
@ -23,9 +23,10 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#include "util/numeric.h" // IntervalLimiter
|
||||
#include "activeobjectmgr.h" // client::ActiveObjectMgr
|
||||
#include "irr_ptr.h"
|
||||
#include "config.h"
|
||||
#include <set>
|
||||
|
||||
#ifdef SERVER
|
||||
#if !IS_CLIENT_BUILD
|
||||
#error Do not include in server builds
|
||||
#endif
|
||||
|
||||
|
|
|
@ -20,9 +20,10 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#pragma once
|
||||
|
||||
#include "irrlichttypes.h"
|
||||
#include "config.h"
|
||||
#include <string>
|
||||
|
||||
#ifdef SERVER
|
||||
#if !IS_CLIENT_BUILD
|
||||
#error Do not include in server builds
|
||||
#endif
|
||||
|
||||
|
|
|
@ -26,13 +26,14 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#include "client/inputhandler.h"
|
||||
#include "irrlichttypes_extrabloated.h"
|
||||
#include "debug.h"
|
||||
#include "config.h"
|
||||
#include "client/shader.h"
|
||||
#include "client/render/core.h"
|
||||
// include the shadow mapper classes too
|
||||
#include "client/shadows/dynamicshadowsrender.h"
|
||||
#include <IVideoDriver.h>
|
||||
|
||||
#ifdef SERVER
|
||||
#if !IS_CLIENT_BUILD
|
||||
#error Do not include in server builds
|
||||
#endif
|
||||
|
||||
|
|
|
@ -20,13 +20,14 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#pragma once
|
||||
|
||||
#include "irr_v3d.h"
|
||||
#include "config.h"
|
||||
#include <limits>
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
#include <unordered_set>
|
||||
#include <vector>
|
||||
|
||||
#ifdef SERVER
|
||||
#if !IS_CLIENT_BUILD
|
||||
#error Do not include in server builds
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue