Skip to content
Snippets Groups Projects
Commit 0d16b9f3 authored by Yorhel's avatar Yorhel
Browse files

Fix colors on FreeBSD (and MacOS?) again

Broken in 1548f927 because I'm an idiot.

Probably also fixes #210, but I don't have a Mac to test.
parent 34dafffc
No related branches found
No related tags found
No related merge requests found
......@@ -27,4 +27,4 @@ chtype ncdu_acs_hline() { return ACS_VLINE ; }
chtype ncdu_acs_vline() { return ACS_HLINE ; }
/* https://github.com/ziglang/zig/issues/8947 */
void ncdu_init_pair(short a, short b, short c) { init_pair(a,b,c); }
void ncdu_init_pair(int a, int b, int c) { init_pair(a,b,c); }
......@@ -197,7 +197,7 @@ extern fn ncdu_acs_urcorner() c.chtype;
extern fn ncdu_acs_lrcorner() c.chtype;
extern fn ncdu_acs_hline() c.chtype;
extern fn ncdu_acs_vline() c.chtype;
extern fn ncdu_init_pair(idx: c_short, fg: c_short, bg: c_short) void;
extern fn ncdu_init_pair(idx: c_int, fg: c_int, bg: c_int) void;
const StyleAttr = struct { fg: i16, bg: i16, attr: u32 };
const StyleDef = struct {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment