From 2b23951e4f70d573a49dd7f44f3b730921b7d5b1 Mon Sep 17 00:00:00 2001 From: Yorhel <git@yorhel.nl> Date: Sun, 26 Dec 2021 11:02:32 +0100 Subject: [PATCH] ui.zig: Really fix import of wcwidth() this time Fixes #183 --- src/ui.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui.zig b/src/ui.zig index 8401910..50171a7 100644 --- a/src/ui.zig +++ b/src/ui.zig @@ -8,11 +8,11 @@ const main = @import("main.zig"); const util = @import("util.zig"); pub const c = @cImport({ + @cDefine("_XOPEN_SOURCE", "1"); @cInclude("stdio.h"); @cInclude("string.h"); @cInclude("curses.h"); @cInclude("time.h"); - @cDefine("_XOPEN_SOURCE", "1"); @cInclude("wchar.h"); @cInclude("locale.h"); }); -- GitLab