From 4ed68f73dae9e7621d7d7512b5feb686e9440bb2 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Thu, 6 Jan 2022 23:39:21 +0000 Subject: Tidy up stubs, make vstdlib a stub, build on Linux Important note: it doesn't WORK on Linux, and there's tons of warnings and stuff, but it's easier to work on when all the compiler output and whatnot is there. --- src/con_.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/con_.c') diff --git a/src/con_.c b/src/con_.c index 1c9d4a7..be3f20c 100644 --- a/src/con_.c +++ b/src/con_.c @@ -16,6 +16,7 @@ */ #include +#include // should be implied by stdlib but glibc is dumb (offsetof) #include #include @@ -294,7 +295,7 @@ static void VCALLCONV Create_var(void *thisoff, const char *name, void *_con_vtab_cmd[14 + NVDTOR] = { (void *)&dtor, #ifndef _WIN32 - (void *)&dtor2, + (void *)&dtor, #endif (void *)&IsCommand_cmd, (void *)&IsFlagSet_cmd, @@ -312,10 +313,11 @@ void *_con_realvtab_var[20] = { &varrtti, #else // this, among many other things, will be totally different on linux +#warning FIX THIS TOO! #endif (void *)&dtor, #ifndef _WIN32 - (void *)&dtor2, + (void *)&dtor, #endif (void *)&IsCommand_var, (void *)&IsFlagSet_var, -- cgit v1.2.3