summaryrefslogtreecommitdiffhomepage
path: root/src/kvsys.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/kvsys.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/kvsys.c')
-rw-r--r--src/kvsys.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/kvsys.c b/src/kvsys.c
index 1d09b0f..fc10b93 100644
--- a/src/kvsys.c
+++ b/src/kvsys.c
@@ -1,5 +1,5 @@
/*
- * Copyright © 2023 Michael Smith <mikesmiffy128@gmail.com>
+ * Copyright © 2024 Michael Smith <mikesmiffy128@gmail.com>
* Copyright © 2024 Willian Henrique <wsimanbrazil@yahoo.com.br>
*
* Permission to use, copy, modify, and/or distribute this software for any
@@ -15,6 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
+#include "abi.h"
#include "con_.h"
#include "engineapi.h"
#include "extmalloc.h"
@@ -75,13 +76,6 @@ static const char *VCALLCONV hook_GetStringForSymbol(void *this, int s) {
return ret;
}
-// XXX: 5th instance of this in the codebase, should REALLY tidy up soon
-#ifdef _WIN32
-#define NVDTOR 1
-#else
-#define NVDTOR 2
-#endif
-
static void detectabichange(void **kvsvt) {
// When no virtual destructor is present, the 6th function in the KVS vtable
// is AddKeyValuesToMemoryLeakList, which is a nop in release builds.