mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +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
|
@ -935,7 +935,7 @@ std::wstring translate_string(std::wstring_view s, Translations *translations)
|
|||
// Translate string client side
|
||||
std::wstring translate_string(std::wstring_view s)
|
||||
{
|
||||
#ifdef SERVER
|
||||
#if !CHECK_CLIENT_BUILD()
|
||||
return translate_string(s, nullptr);
|
||||
#else
|
||||
return translate_string(s, g_client_translations);
|
||||
|
|
|
@ -20,7 +20,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#pragma once
|
||||
|
||||
#include "irrlichttypes_bloated.h"
|
||||
#ifndef SERVER
|
||||
#include "config.h" // IS_CLIENT_BUILD
|
||||
#if IS_CLIENT_BUILD
|
||||
#include "irrString.h"
|
||||
#endif
|
||||
#include <cstdlib>
|
||||
|
@ -755,7 +756,7 @@ inline std::string str_join(const std::vector<std::string> &list,
|
|||
return oss.str();
|
||||
}
|
||||
|
||||
#ifndef SERVER
|
||||
#if IS_CLIENT_BUILD
|
||||
/**
|
||||
* Create a UTF8 std::string from an irr::core::stringw.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue