Skip to content

Commit

Permalink
add define everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
mattnite committed Sep 22, 2024
1 parent 3cfa2dd commit f99aeb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ pub fn build(b: *std.Build) void {
});
},
.windows => {
srtcore.defineCMacro("ENABLE_STDCXX_SYNC", "1");
srtcore.addCSourceFile(.{
.file = srt_dep.path("srtcore/sync_cxx11.cpp"),
.flags = flags,
Expand Down Expand Up @@ -136,6 +135,7 @@ fn set_defines(lib: *Build.Step.Compile, target: Build.ResolvedTarget) void {
else => {},
}

lib.defineCMacro("ENABLE_STDCXX_SYNC", "1");
lib.defineCMacro("HAVE_CXX_STD_PUT_TIME", "1");
lib.defineCMacro("USE_MBEDTLS", "1");
lib.defineCMacro("SRT_ENABLE_ENCRYPTION", "1");
Expand Down

0 comments on commit f99aeb3

Please sign in to comment.