Skip to content

Commit

Permalink
Fix windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Shadle committed Jan 17, 2024
1 parent fde0589 commit 403a0f4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build_zng.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,11 +300,13 @@ pub fn build_zlib_ng(target: &str, compat: bool) {

let msvc = target.ends_with("pc-windows-msvc");

cfg.std("c11");

// This can be made configurable if it is an issue but most of these would
// only fail if the user was on a decade old+ libc impl
if !msvc {
cfg.std("c11")
.define("HAVE_ALIGNED_ALLOC", None)
cfg.define("HAVE_ALIGNED_ALLOC", None)
.define("HAVE_ATTRIBUTE_ALIGNED", None)
.define("HAVE_BUILTIN_CTZ", None)
.define("HAVE_BUILTIN_CTZLL", None)
.define("HAVE_POSIX_MEMALIGN", None)
Expand Down

0 comments on commit 403a0f4

Please sign in to comment.