Skip to content

Commit

Permalink
Workaround for #244
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Nov 6, 2022
1 parent da98108 commit 71f8f67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bson/bson-memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -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(__APPLE__) || defined(MAC_OS_X_VERSION_10_15))
{
return aligned_alloc (alignment, num_bytes);
}
Expand Down

0 comments on commit 71f8f67

Please sign in to comment.