From 4ac666752a572b1c3d6d94f79a7225270bea04b3 Mon Sep 17 00:00:00 2001 From: Toby Jaffey Date: Sat, 7 Dec 2024 01:09:46 +0000 Subject: [PATCH] Add missing wrapper --- src/doom/puredoom/DOOM.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/doom/puredoom/DOOM.c b/src/doom/puredoom/DOOM.c index 6b3d905..c0bb3cb 100644 --- a/src/doom/puredoom/DOOM.c +++ b/src/doom/puredoom/DOOM.c @@ -36,6 +36,19 @@ void free_wrapper(void *p) { free(p); } +static void* doom_malloc_impl(int size) +{ + return malloc((size_t)size); +} +static void doom_free_impl(void* ptr) { + free(ptr); +} +static void doom_exit_impl(int code) +{ + exit(code); +} + + char error_buf[260]; int doom_flags = 0; doom_print_fn doom_print = 0;