summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build.zig3
-rw-r--r--src/sdl.zig4
2 files changed, 5 insertions, 2 deletions
diff --git a/build.zig b/build.zig
index 428903c..8c9cdf9 100644
--- a/build.zig
+++ b/build.zig
@@ -8,7 +8,8 @@ pub fn build(b: *std.build.Builder) void {
exe.setTarget(target);
exe.setBuildMode(mode);
exe.install();
- exe.linkSystemLibrary("sdl2");
+ exe.linkSystemLibrary("SDL2");
+ exe.linkSystemLibrary("c");
const run_cmd = exe.run();
run_cmd.step.dependOn(b.getInstallStep());
diff --git a/src/sdl.zig b/src/sdl.zig
index f8925a1..6066c03 100644
--- a/src/sdl.zig
+++ b/src/sdl.zig
@@ -1,5 +1,7 @@
const std = @import("std");
-const sdl = @cImport(@cInclude("SDL2/SDL.h"));
+const sdl = @cImport({
+ @cInclude("SDL.h");
+});
const Point = @import("main.zig").Point;
pub const instance = struct {