hide functions for yaml2sql (#7390)

yaml2sql uses some headers for constants from map-server.
In order to avoid linker errros, no functions from those headers
must be used.
However, some static functions are the status.hpp which cause
linker errors when creating a debug build.
The define `ONLY_CONSTANTS` hides those funcitons for yaml2sql.

refs #7389

Co-authored-by: Vincent Stumpf <vincents.995@gmail.com>
This commit is contained in:
Dominik Nussbaumer
2023-02-03 08:51:46 +01:00
committed by GitHub
parent a1f9a6c1d1
commit e2ee5cbefb
3 changed files with 4 additions and 1 deletions

View File

@@ -34,6 +34,7 @@
#endif
// Only for constants - do not use functions of it or linking will fail
#define ONLY_CONSTANTS
#include "../map/achievement.hpp"
#include "../map/battle.hpp"
#include "../map/battleground.hpp"