From 29389a446859d0d92145ecb395a3b4bff2e0f8be Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Tue, 21 May 2024 21:25:19 +0100 Subject: 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. --- src/l4dreset.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/l4dreset.c') 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 +#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) -- cgit v1.2.3