Skip to content

Commit c05a1a0

Browse files
authored
CDRIVER-4550 Do not use aligned_alloc() on Windows (#1173)
1 parent 4edb995 commit c05a1a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libbson/src/bson/bson-memory.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ BSON_STATIC_ASSERT2 (bson_mem_vtable_t,
3333
// For compatibility with C standards prior to C11.
3434
static void *
3535
_aligned_alloc_impl (size_t alignment, size_t num_bytes)
36-
#if __STDC_VERSION__ >= 201112L
36+
#if __STDC_VERSION__ >= 201112L && !defined(_WIN32)
3737
{
3838
return aligned_alloc (alignment, num_bytes);
3939
}

0 commit comments

Comments
 (0)