diff options
author | Michael Smith <mikesmiffy128@gmail.com> | 2024-05-21 21:25:19 +0100 |
---|---|---|
committer | Michael Smith <mikesmiffy128@gmail.com> | 2024-05-21 21:25:19 +0100 |
commit | 29389a446859d0d92145ecb395a3b4bff2e0f8be (patch) | |
tree | 03286956cc807ddea39573dfb0db5168d4d8140a /src/con_.c | |
parent | 2d0ac38fa0e023d29b32a867240df7fc38c5afaa (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/con_.c')
-rw-r--r-- | src/con_.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -1,6 +1,6 @@ /* THIS FILE SHOULD BE CALLED `con.c` BUT WINDOWS IS STUPID */ /* - * Copyright © 2023 Michael Smith <mikesmiffy128@gmail.com> + * Copyright © 2024 Michael Smith <mikesmiffy128@gmail.com> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -256,12 +256,6 @@ static void VCALLCONV Create_var(void *thisoff, const char *name, const char *defaultval, int flags, const char *helpstr, bool hasmin, float min, bool hasmax, float max, void *cb) {} -#ifdef _WIN32 -#define NVDTOR 1 -#else -#define NVDTOR 2 // Itanium ABI has 2 because I said so -#endif - // the first few members of ConCommandBase are the same between versions void *_con_vtab_cmd[14 + NVDTOR] = { (void *)&dtor, |