From 403a0f49b3ef2e95b4e7da84f7e738a4f6b70514 Mon Sep 17 00:00:00 2001 From: Jake Shadle Date: Wed, 17 Jan 2024 14:14:05 +0100 Subject: [PATCH] Fix windows --- build_zng.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build_zng.rs b/build_zng.rs index 71444b65..1915d3e7 100644 --- a/build_zng.rs +++ b/build_zng.rs @@ -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)