mirror of
https://github.com/fairyglade/ly.git
synced 2026-08-06 21:21:58 +00:00
Remove C compilation hacks
Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
@@ -38,18 +38,7 @@ pub fn build(b: *std.Build) void {
|
|||||||
.optimize = optimize,
|
.optimize = optimize,
|
||||||
});
|
});
|
||||||
termbox2.defineCMacro("TB_IMPL", null);
|
termbox2.defineCMacro("TB_IMPL", null);
|
||||||
// TODO 0.16.0: Workaround until Aro gets better...
|
|
||||||
// https://codeberg.org/ziglang/translate-c/issues/319
|
|
||||||
termbox2.defineCMacro("_XOPEN_SOURCE", "700");
|
|
||||||
termbox2.defineCMacro("TB_OPT_ATTR_W", "32"); // Enable 24-bit color support + styling (32-bit)
|
termbox2.defineCMacro("TB_OPT_ATTR_W", "32"); // Enable 24-bit color support + styling (32-bit)
|
||||||
// TODO 0.16.0: Including <fcntl.h> with -OReleaseSafe causes
|
|
||||||
// __attribute__(__error__()) to be called. Below
|
|
||||||
// is the workaround.
|
|
||||||
termbox2.defineCMacro("_FORTIFY_SOURCE", "0");
|
|
||||||
// TODO 0.16.0: Needed for now
|
|
||||||
if (target.result.os.tag == .freebsd) {
|
|
||||||
termbox2.defineCMacro("__BSD_VISIBLE", "1");
|
|
||||||
}
|
|
||||||
mod.addImport("termbox2", termbox2.mod);
|
mod.addImport("termbox2", termbox2.mod);
|
||||||
|
|
||||||
const mod_tests = b.addTest(.{
|
const mod_tests = b.addTest(.{
|
||||||
|
|||||||
Reference in New Issue
Block a user