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/gamedata.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'src/gamedata.c') diff --git a/src/gamedata.c b/src/gamedata.c index 78eb620..247bf25 100644 --- a/src/gamedata.c +++ b/src/gamedata.c @@ -1,5 +1,5 @@ /* - * Copyright © 2023 Michael Smith + * Copyright © 2024 Michael Smith * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -14,16 +14,9 @@ * PERFORMANCE OF THIS SOFTWARE. */ +#include "abi.h" // purely for NVDTOR #include "gametype.h" -// same as gamedata.h, not worth putting in its own thing -// (it's also in con_.c. whatever) -#ifdef _WIN32 -#define NVDTOR 1 -#else -#define NVDTOR 2 -#endif - #include // generated by build/mkgamedata.c // vi: sw=4 ts=4 noet tw=80 cc=80 -- cgit v1.2.3