From f14476dff594243d337a3d1d8c875078c1964652 Mon Sep 17 00:00:00 2001 From: Jeroen Ooms Date: Fri, 6 Jan 2023 19:06:40 +0100 Subject: [PATCH] Do not use aligned_alloc() on Windows --- src/libbson/src/bson/bson-memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libbson/src/bson/bson-memory.c b/src/libbson/src/bson/bson-memory.c index 8eb8f177575..1a9fca4fcef 100644 --- a/src/libbson/src/bson/bson-memory.c +++ b/src/libbson/src/bson/bson-memory.c @@ -33,7 +33,7 @@ BSON_STATIC_ASSERT2 (bson_mem_vtable_t, // For compatibility with C standards prior to C11. static void * _aligned_alloc_impl (size_t alignment, size_t num_bytes) -#if __STDC_VERSION__ >= 201112L +#if __STDC_VERSION__ >= 201112L && !defined(_WIN32) { return aligned_alloc (alignment, num_bytes); }