diff --git a/build.zig b/build.zig index 0fca4cf..78c23c7 100644 --- a/build.zig +++ b/build.zig @@ -13,10 +13,12 @@ pub fn build(b: *std.Build) void { .target = target, }); + phy.defineCMacro("GL_SILENCE_DEPRECATION", &.{}); + phy.defineCMacro("GLFW_INCLUDE_GLCOREARB", &.{}); + phy.addIncludePath(.{ .src_path = .{ .owner = b, .sub_path = "include" }, }); - phy.addCSourceFiles(.{ .root = .{ .src_path = .{ .owner = b, .sub_path = "src" }, diff --git a/src/main.c b/src/main.c index bfc6847..c0ceb8f 100644 --- a/src/main.c +++ b/src/main.c @@ -1,6 +1,3 @@ -#define GL_SILENCE_DEPRECATION -#define GLFW_INCLUDE_GLCOREARB - #include "vector.h" #include