From 23e3b82526449c984bdc1dc2580e9508533983ba Mon Sep 17 00:00:00 2001 From: LN Liberda Date: Mon, 10 Mar 2025 02:20:01 +0100 Subject: [PATCH] Zig 0.14: StructField holds default values as pointers --- pkg/libxml2/build.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/libxml2/build.zig b/pkg/libxml2/build.zig index 7db637774..7effdd134 100644 --- a/pkg/libxml2/build.zig +++ b/pkg/libxml2/build.zig @@ -66,7 +66,7 @@ pub fn build(b: *std.Build) !void { // it to the `LIBXML_{field}_ENABLED` C define where field is uppercased. inline for (std.meta.fields(Options)) |field| { const opt = b.option(bool, field.name, "Configure flag") orelse - @as(*const bool, @ptrCast(field.default_value.?)).*; + @as(*const bool, @ptrCast(field.default_value_ptr.?)).*; if (opt) { var nameBuf: [32]u8 = undefined; const name = std.ascii.upperString(&nameBuf, field.name);