diff --git a/src/libs/sokol_fontstash_impl.c b/src/libs/sokol_fontstash_impl.c index 6c3ba3d..d4fe486 100644 --- a/src/libs/sokol_fontstash_impl.c +++ b/src/libs/sokol_fontstash_impl.c @@ -2,6 +2,9 @@ #include "stdio.h" #include "stdbool.h" #include +#ifdef _WIN32 +#include +#endif #define FONTSTASH_IMPLEMENTATION #include "fontstash.h" diff --git a/src/main.zig b/src/main.zig index 926e236..852be9c 100644 --- a/src/main.zig +++ b/src/main.zig @@ -84,22 +84,22 @@ pub fn main() !void { var debug_allocator: std.heap.DebugAllocator(.{}) = .init; defer _ = debug_allocator.deinit(); - if (builtin.mode == .ReleaseFast) { - gpa = std.heap.smp_allocator; - } else { + if (builtin.mode == .Debug) { gpa = debug_allocator.allocator(); + } else { + gpa = std.heap.smp_allocator; } // TODO: Use tracy TracingAllocator tracy.setThreadName("Main"); - var sa: std.posix.Sigaction = .{ - .handler = .{ .handler = signalHandler }, - .mask = std.posix.sigemptyset(), - .flags = std.posix.SA.RESTART, - }; - std.posix.sigaction(std.posix.SIG.INT, &sa, null); + // var sa: std.posix.Sigaction = .{ + // .handler = .{ .handler = signalHandler }, + // .mask = std.posix.sigemptyset(), + // .flags = std.posix.SA.RESTART, + // }; + // std.posix.sigaction(std.posix.SIG.INT, &sa, null); sapp.run(.{ .init_cb = init,