summaryrefslogtreecommitdiffhomepage
path: root/src/con_.c
diff options
context:
space:
mode:
authorMichael Smith <mikesmiffy128@gmail.com>2023-08-20 16:20:03 +0100
committerMichael Smith <mikesmiffy128@gmail.com>2023-08-27 00:46:09 +0100
commita1998f2f7ce4153d670e2e5cb5018366517cc1ca (patch)
tree4d899fbad24c728c0b51f183c61ed6a7fb213c04 /src/con_.c
parent38fa6c52a8a26ac178a3e1f80a8317740b8e82b3 (diff)
Get things at least compiling under Linux
Nothing really works yet, but at least test.h and fastspin are fixed and some of the issues with RTTI and libdl and stuff are maybe kind of sorted, subject to more testing later. The main issue now seems to be the cvar interface not quite lining up and crashing pretty much immediately. That'll probably take a lot more debugging to figure out, which likely still won't be a priority for quite a while.
Diffstat (limited to 'src/con_.c')
-rw-r--r--src/con_.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/con_.c b/src/con_.c
index 6ae1738..a462286 100644
--- a/src/con_.c
+++ b/src/con_.c
@@ -295,10 +295,13 @@ struct _con_vtab_var_wrap _con_vtab_var_wrap = {
(void *)&AddFlags_var
};
-void *_con_vtab_iconvar[7] = {
+struct _con_vtab_iconvar_wrap _con_vtab_iconvar_wrap = {
#ifdef _WIN32
0 // because of crazy overload vtable order we can't prefill *anything*
#else
+ // RTTI members first on linux:
+ -offsetof(struct con_var, vtable_iconvar),
+ &varrtti,
// colour is the last of the 4 on linux so we can at least prefill these 3
(void *)&SetValue_str_thunk,
(void *)&SetValue_f_thunk,