Skip to content

Commit a035785

Browse files
authored
Merge pull request #1 from fabio/zig-0.14
Support Zig 0.14
2 parents dcf5a5f + f31ee85 commit a035785

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pub fn build(b: *std.Build) void {
3030
});
3131
if (!shared) {
3232
lib.pie = true;
33-
lib.defineCMacro("AMQP_STATIC", "");
33+
lib.root_module.addCMacro("AMQP_STATIC", "");
3434
}
3535
const configH = b.addConfigHeader(.{
3636
.style = .blank,
@@ -46,7 +46,7 @@ pub fn build(b: *std.Build) void {
4646
},
4747
.ENABLE_SSL_ENGINE_API = if (ssl) {} else null,
4848
});
49-
lib.defineCMacro("HAVE_CONFIG_H", null);
49+
lib.root_module.addCMacro("HAVE_CONFIG_H", "");
5050
lib.addConfigHeader(configH);
5151
lib.addIncludePath(generated_export_header.getDirectory());
5252
lib.addIncludePath(b.path("include"));

0 commit comments

Comments
 (0)