Commit: 4c5f69df97e3522e8cef14b618373e515c44569c
Parent: 66d57d53b801c54c88f4093bf4af465f34e0b9e9
Author: Randy Palamar
Date: Mon, 7 Oct 2024 16:52:13 -0600
os_win32: actually declare the stderr_handle
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/os_win32.c b/os_win32.c
@@ -79,6 +79,8 @@ typedef struct {
typedef void *os_library_handle;
+static void *win32_stderr_handle;
+
static void __attribute__((noreturn))
os_fail(void)
{
@@ -112,7 +114,7 @@ os_alloc_arena(Arena a, size capacity)
a.beg = VirtualAlloc(0, capacity, MEM_RESERVE|MEM_COMMIT, PAGE_READWRITE);
if (a.beg == NULL) {
- os_write_err_msg("os_alloc_arena: couldn't allocate memory\n");
+ os_write_err_msg(s8("os_alloc_arena: couldn't allocate memory\n"));
os_fail();
}
a.end = a.beg + capacity;