Skip to content

Commit f31ee85

Browse files
author
Fabio Inguaggiato
committed
Support Zig 0.14
Authored-By: klaus82 Authored-By: fabio Authored-By: inge4pres Signed-off-by: Fabio Inguaggiato <fabio@antura.it>
1 parent dcf5a5f commit f31ee85

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)