Define _XOPEN_SOURCE=700 instead of _GNU_SOURCE

Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
AnErrupTion 2026-04-17 11:24:56 +02:00
commit 67496fc907
No known key found for this signature in database

View file

@ -25,7 +25,7 @@ pub fn build(b: *std.Build) void {
translate_c.defineCMacroRaw("TB_IMPL");
// TODO 0.16.0: Workaround until Aro gets better...
// https://codeberg.org/ziglang/translate-c/issues/319
translate_c.defineCMacroRaw("_GNU_SOURCE");
translate_c.defineCMacro("_XOPEN_SOURCE", "700");
translate_c.defineCMacro("TB_OPT_ATTR_W", "32"); // Enable 24-bit color support + styling (32-bit)
const termbox2 = translate_c.addModule("termbox2");
mod.addImport("termbox2", termbox2);