summaryrefslogtreecommitdiffhomepage
path: root/src/l4dreset.c
diff options
context:
space:
mode:
authorMichael Smith <mikesmiffy128@gmail.com>2024-05-21 21:25:19 +0100
committerMichael Smith <mikesmiffy128@gmail.com>2024-05-21 21:25:19 +0100
commit29389a446859d0d92145ecb395a3b4bff2e0f8be (patch)
tree03286956cc807ddea39573dfb0db5168d4d8140a /src/l4dreset.c
parent2d0ac38fa0e023d29b32a867240df7fc38c5afaa (diff)
Deal with the stupid NVDTOR situation
Bill suggested using abi.h for this. Not sure if it's 100% ideal to need to pull in the whole header for this one macro but it's arguably better than most alternatives and definitely better than just continuing to duplicate it ad nauseam.
Diffstat (limited to 'src/l4dreset.c')
-rw-r--r--src/l4dreset.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/l4dreset.c b/src/l4dreset.c
index e95a1ac..c1a22dd 100644
--- a/src/l4dreset.c
+++ b/src/l4dreset.c
@@ -17,6 +17,7 @@
#include <string.h>
+#include "abi.h"
#include "con_.h"
#include "engineapi.h"
#include "ent.h"
@@ -67,13 +68,6 @@ static void *director; // "TheDirector" server global
bool last_passed;
};*/
-// XXX: duping this again here... what makes sense to tidy this up?
-#ifdef _WIN32
-#define NVDTOR 1
-#else
-#define NVDTOR 2
-#endif
-
struct CVoteIssue;
DECL_VFUNC(const char *, SetIssueDetails, 1 + NVDTOR, const char *)
DECL_VFUNC(const char *, GetDisplayString, 8 + NVDTOR)